ii := new(int)
(*ii) = 3
(*ii)++
Yes, it's not exactly the same syntax. It still demonstrates that what you
are suggesting creates, at best, very marginal benefit.
On Sun, Aug 20, 2017 at 8:00 AM, Tong Sun wrote:
> I did. why there are always people assuming the other party they
> are talking
I did. why there are always people assuming the other party they are
talking to is just silly.
Anyway, this is what i got:
var ii *int
ii = 3
ii++
cannot use 3 (type int) as type *int in assignment
invalid operation: ii++ (non-numeric type *int)
On Sun, Aug 20, 2017 at 1:24 AM, Tyler Compt
I don't think it's immediately obvious what use cases this "int?" proposal
delivers that aren't covered by "*int". The encoding/json package uses
pointers to support null JSON values.
As a more general point, when someone answers your question, they're taking
time out of their day to help you. I t
Hi guys,
I am learning golang with the fantastic book "Go in Action". And I have
some problems with understanding when to switch a goroutine to be run in
chapter 6.
package main
1
2 import (
3 "fmt"
4 "runtim
Greetings,
I have been tracking the recent changes taking place on the Go master
branch as we come up on a 1.9 official release. A couple times a week I
would refresh my local Go repo with the following command:
$ git pull origin master
Then, after my local repo update completes:
$ cd src
$ e
Thanks Nate,
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Oh yeah? Are you sure what you are answering is what I'm asking?
Please try to understand what people are asking before showing off
yourself, or post concrete example to proof that you understand correctly
what people are asking.
On Sat, Aug 19, 2017 at 4:02 PM, Axel Wagner
wrote:
> Go can do w
On Thu, Aug 17, 2017 at 5:13 AM, Ian Lance Taylor wrote:
> On Wed, Aug 16, 2017 at 11:50 AM, wrote:
>> I was wondering if I should assume BSD 3 clause licenses for all the files
>> located under
>>
>> x/image/testdata and x/image/font/testdata
>>
>> since there are no licese notes regarding thos
Hi,
I would like know if there is away to get OpenGL running in an Go app on a
Raspberry Pi 3?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+uns
Hey guys, sorry for bothering :D
Here I want to ask a small question about the Golang binary debug info.
The steps to reproduce my problem:
1. $ cat symtab.go
```
package main
import (
"fmt"
"net/http"
_ "net/http/pprof"
"os"
)
func main() {
fmt.Println(os.Getpid())
http.ListenAndServe(":9990
Go can do what you want today, just that it's spelled "*int".
On Sat, Aug 19, 2017 at 6:01 PM, Tong Sun wrote:
> - "int?" will be a different type than "int". I.e., we know very well what
> we are sacrificing when we choose that type.
> - There is a demand there, json and/or sql. Denying it won'
Hi
I have a golang HTTP server that I am deploying on an AWS EC2 VM, as a
systemd service.
Right now, I am manually deploying the service as follows:
1) vm$ sudo systemctl stop
2) dev$ scp
3)psql$ Apply migrations manually
4) vm$ sudo stystemctl start
4) vm$ sudo stystemctl status ;# Ju
Awesome, thanks!
I just can't match "arbitrary precision" and "float" expressions: 1/3 is
rational, but can't be represented with float-like data structure.
The same problem is with arbitrary precision uint: what will ^uint-1 be?
So, arbitrary precision int and user-specified-precision float is g
Jimmy, thank you for the tip! i went there and added my modest suggestions
to the proposal.
https://github.com/golang/go/issues/19623
Tamás, you make a very important point. It is one that GRI did a very good
job of in big.Float. The question of how to specify precision for
variable-precision floa
What is an arbitrary precision float? 1/3, Pi, ✓2 ?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, vi
There's https://github.com/golang/go/issues/19623 for making int
arbitrary precision in Go2 (yes, please) there could also be an
arbitrary precision float to go with float32/float64 :D
On Sat, Aug 19, 2017 at 8:04 AM, Michael Jones wrote:
> I would REALLY like to see big types as normal declarati
- "int?" will be a different type than "int". I.e., we know very well what
we are sacrificing when we choose that type.
- There is a demand there, json and/or sql. Denying it won't make it go
away.
(*Sorry to Jan, was sending to the wrong place*)
On Sat, Aug 19, 2017 at 11:54 AM, Jan Mercl <0xj..
On Sat, Aug 19, 2017 at 5:05 PM Tong Sun wrote:
> Suggesting C# type syntax like "int?" so as to take nil as valid value.
- As int is not a pointer type, what would nil int mean?
- Are you willing to sacrifice extra storage for the additional isNil
information or do you prefer that int cannot r
sql.NullInt64 or alike with custom MarshalJSON and UnmarshalJSON?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For mo
Suggesting C# type syntax like "int*?*" so as to take nil as valid value.
Currently:
var i int
i = nil
will give:
cannot use nil as type int in assignment
However, more and more people are using json to transport data, and there
will be times that json may be invalid. I.e., the "int" type ha
I would REALLY like to see big types as normal declarations and syntax. The
SSA framework seems suitable to automatically manage the temporaries.
On Sat, Aug 19, 2017 at 7:14 AM, roger peppe wrote:
> Constructive reals in Go, anyone? :-)
>
> On 18 Aug 2017 17:50, "Michael Jones" wrote:
>
>> Her
On 18-08-2017, wilk wrote:
> Hi,
>
> I'm experiencing a lot of log in nginx :
> upstream prematurely closed connection while reading upstream
>
> Looking in my code it's because I added
>
> w.Header().Set("content-length", strconv.Itoa(len(w.Body.Bytes(
> If i remove it, no more logs and my cl
Constructive reals in Go, anyone? :-)
On 18 Aug 2017 17:50, "Michael Jones" wrote:
> Here is a minor musing from something that came up yesterday.
>
> Sometimes we see a real number expression as simple as...
>
> x*y/z
>
> ...and knowing from basic algebra that...
>
> (x*y)/z == x*(y/z)
>
> ..
23 matches
Mail list logo