Re: [go-nuts] Generic alternatives: new basic types?

2018-09-23 Thread Ian Denhardt
Quoting robert engels (2018-09-23 22:50:54) >I'm often confounded when people discuss Java (at least in comparison >to Go) as being "heavy". If you read early interviews with Gosling it >is clear that his design was more about what to leave out, not what to >include (macros,

[go-nuts] Re: Help tracking down module dependencies

2018-09-23 Thread thepudds1460
Hi Justin, I'm not sure where that gotest.tools is coming from in your particular build, and not sure of the root cause of the issue with your http proxy. However, one thing you could try is a 'replace' directive to try to get gotest.tools directly from github. I don't know if that will help

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Louki Sumirniy
Choosing a virtual machine target was the wrong decision. All machines have a machine in them, why add a virtual one? C already could be compiled on every platform, all we got out of it was processing latency and a whole extra layer of performance wrinkles that the CPU maker probably already

Re: [go-nuts] cannot take the address of method()

2018-09-23 Thread Jesse McNelis
On Mon, Sep 24, 2018 at 5:33 AM, Tamás Király wrote: > Hi, > > can anyone explain why the following does not work? > i want to have the return value's address not the method itself. > > package main > > func main() { > //first > addressofstring := () > } > > func method() string { > return

Re: [go-nuts] Generic alternatives: new basic types?

2018-09-23 Thread robert engels
I’m often confounded when people discuss Java (at least in comparison to Go) as being “heavy”. If you read early interviews with Gosling it is clear that his design was more about what to leave out, not what to include (macros, pre-processor, unsigned arithmetic, etc.) He is a brilliant

[go-nuts] Help tracking down module dependencies

2018-09-23 Thread Justin Israel
I'm converting one of my internal projects from glide to a module, after having done two other conversions. But I am hitting a problem that I can't yet solve. $ GO111MODULE=on go mod tidy -v Fetching https://gotest.tools?go-get=1 https fetch failed: Get https://gotest.tools?go-get=1: Forbidden

[go-nuts] cannot take the address of method()

2018-09-23 Thread Tamás Király
Hi, can anyone explain why the following does not work? i want to have the return value's address not the method itself. package main func main() { //first addressofstring := () } func method() string { return "value" } https://play.golang.org/p/UbJ7SK0m9w6 regards Tamás Király -- You

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Nhiên Phan
Hi everybody. I'm a beginner at Golang. Anyone who has the talent to Golang please let me please On Mon, Sep 24, 2018 at 1:05 AM Ian Denhardt wrote: > Quoting Robert Engels (2018-09-23 13:38:04) > > I wasn’t suggesting that Go should resemble Java. I was just trying to > point out that many of

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Michael Jones
You did not offend me. This is a place for earnest ideas and all are welcome. Your comment is not yet persuasive, but it might become so. Still thinking. I first heard from James Gosling about Java when Java was Oak. He seemed proud to say, "C++ has objects. Well, I'll show them, I'll make

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Ian Denhardt
Quoting Robert Engels (2018-09-23 13:38:04) > I wasn’t suggesting that Go should resemble Java. I was just trying to point > out that many of the current issues under debate for Go2 have been resolved > quite well in other languages, and looking to them for direction should not > be out of

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Robert Engels
I wasn’t suggesting that Go should resemble Java. I was just trying to point out that many of the current issues under debate for Go2 have been resolved quite well in other languages, and looking to them for direction should not be out of bounds just because they are not Go. That’s a little

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Lucio De Re
On 9/23/18, Robert Engels wrote: > I take offense to that. I apologized for my statement that was worded more > harshly than intended. But if you think that Go is beyond criticism just > because of ??? Anything??? Go is a GREAT tool for many classes of > applications, but it is certainly not

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Robert Engels
I take offense to that. I apologized for my statement that was worded more harshly than intended. But if you think that Go is beyond criticism just because of ??? Anything??? Go is a GREAT tool for many classes of applications, but it is certainly not appropriate for all use cases. Maybe with

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Lucio De Re
I take exception to that statement, your notion of "understood languages much better" doesn't parse in light of the fact that you are here, debating the merits of Java in the primary Go forum instead of writing wonderful code using the language you respect so much. That's either hypocritical or

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Robert Engels
I’m sorry. I did not mean to offend anyone. It came out wrong and I apologize. Sent from my iPhone > On Sep 23, 2018, at 5:01 AM, Louki Sumirniy > wrote: > > The thing that people are concerned about is creating a construct that > enables you to write legal but confusing and unclear code.

[go-nuts] Re: Serve HTML/CSS/JS as a desktop app?

2018-09-23 Thread Louki Sumirniy
There is a lotta stuff that can be done with html and css now without javascript, but for this kind of application I think that the display side (the webkit/blink engine) has to have a websocket to the server backend to allow pushing updates to the DOM, at least refreshes. But this is not a

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Louki Sumirniy
The thing that people are concerned about is creating a construct that enables you to write legal but confusing and unclear code. Let's say we steal triple equals ===, and then use it to mean some kind of special assignment operation. Or we make = become an addition operator infix for a

Re: [go-nuts] Re: Using modules with go test ./...

2018-09-23 Thread Scott Cotton
Hi @thepudds, Good to hear and glad to have followed up so as to have introduced in the conversation how to address the concern in that post. Thanks for the great summary of how to give effective feedback about about modules and the general context. Best, Scott On Saturday, 22 September

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Robert Engels
Issues like these highlight the deficiencies of Go compared to Java. The Java designers understood languages far better, and from the start realized that identity and reference equality were different concepts. Everyone in Go land are debating these solved issues. Pick and chose what you want