Re: [go-nuts] Does Golang need the innovation of C++ move semantics too

2018-05-26 Thread Hugh Fisher
ram. Usually it doesn't matter. Many programs are written in Java, or Python, or JavaScript, where programmers almost never think about move vs copy semantics at all, and those programs are fast enough for what they need to do. cheers, Hugh Fisher -- You received this message because

[go-nuts] Re: Go could really use a while statement

2018-05-13 Thread Hugh Fisher
I still think a while { ... } loop would be a worthwhile addition, for the reasons I've already given. However I don't see the need for an "at least once" do { ... } while loop, and even less need for more exotic loop constructs. So I really don't have anything more t

[go-nuts] Re: Go could really use a while statement

2018-05-09 Thread Hugh Fisher
On Thursday, May 10, 2018 at 4:20:41 AM UTC+10, Marc wrote: > > I'm still not convinced this topic is not some kind of elaborate joke. > It's certainly diverged from my original post, which is why I'm staying quiet. cheers, Hugh Fisher -- You received this

Re: [go-nuts] Go could really use a while statement

2018-05-02 Thread Hugh Fisher
emacs/go-mode.el. Not one single use of 'while' as an identifier in Go code. Nearest thing is a function scanWhile in src/encoding/json/decode.go. OK it's not all the Go code in existence, but I think a strong hint that Go programmers don't want to use while as an identifier.

Re: [go-nuts] Go could really use a while statement

2018-05-02 Thread Hugh Fisher
y to tooling. > > No, I meant a while { ... } loop cheers, Hugh Fisher -- 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...

[go-nuts] Go could really use a while statement

2018-05-01 Thread Hugh Fisher
ap too. And since while has been a reserved keyword in a lot of programming languages for many decades, I would bet a reasonable amount of money that a while statement could be added to Go right now and not break anyone's production code. cheers, Hugh Fisher -- You received this message because

Re: [go-nuts] Allow name : type declarations?

2018-04-24 Thread Hugh Fisher
On Tuesday, April 24, 2018 at 2:52:36 PM UTC+10, Ian Lance Taylor wrote: > > > Thanks for the note. The truth is, regardless of the merits of this > suggestion, it's too late to make this kind of change to the language. > > Ian > Yeah I know, but there's talk of a Go 2 at some stage... --

[go-nuts] Allow name : type declarations?

2018-04-21 Thread Hugh Fisher
name just to make it stand out. cheers, Hugh Fisher -- 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.