Re: [go-nuts] Contrary to popular opinion...

2021-02-28 Thread Robert Engels
I wasn’t referring to the mixed tab/space issue. I mean you copy a few live that are at one indentation to another location with a different indentation - everything is mucked up usually. You don’t have these issues with brackets - the code is easily formatted correctly or a bracket added then

Re: [go-nuts] Contrary to popular opinion...

2021-02-28 Thread Justin Israel
On Monday, March 1, 2021 at 9:36:57 AM UTC+13 ren...@ix.netcom.com wrote: > I think the only time the indentation is a problem is when refactoring > code - copying pasting code blocks seems to be a guessing game with my IDEs > and often require manual fixes - the issue seems far less common

Re: [go-nuts] Contrary to popular opinion...

2021-02-28 Thread 'Dan Kortschak' via golang-nuts
On Sun, 2021-02-28 at 10:11 -0800, Bob Alexander wrote: > I never have understood the *serious* hatred of Python's "indentation > as syntax" approach. I've used lots of bracketed and begin/end > languages (C/C++, Algol & relatives, Ruby, and most other programming > languages), and when I write

Re: [go-nuts] Contrary to popular opinion...

2021-02-28 Thread Robert Engels
I think the only time the indentation is a problem is when refactoring code - copying pasting code blocks seems to be a guessing game with my IDEs and often require manual fixes - the issue seems far less common (and more easily corrected) when using brackets. > On Feb 28, 2021, at 12:12 PM,

Re: [go-nuts] Contrary to popular opinion...

2021-02-28 Thread Bob Alexander
I never have understood the *serious* hatred of Python's "indentation as syntax" approach. I've used lots of bracketed and begin/end languages (C/C++, Algol & relatives, Ruby, and most other programming languages), and when I write code in those languages I usually indent as I write. Obviously,

Re: [go-nuts] Contrary to popular opinion...

2021-02-28 Thread Robert Engels
Popularity has nothing to do with good - thus Twitter and the Kardashians. . > On Feb 28, 2021, at 2:35 AM, 'Dan Kortschak' via golang-nuts > wrote: > > On Sun, 2021-02-28 at 09:23 +0100, Jan Mercl wrote: >> I meant, for example, in regexp notation, ` *` vs `\n *` between a >> function

Re: [go-nuts] Contrary to popular opinion...

2021-02-28 Thread 'Dan Kortschak' via golang-nuts
On Sun, 2021-02-28 at 09:23 +0100, Jan Mercl wrote: > I meant, for example, in regexp notation, ` *` vs `\n *` between a > function signature and the opening brace of the function body. Ah, yes. > This assumes newline is a whitespace. Most programming languages > agree, but humans may not. With

Re: [go-nuts] Contrary to popular opinion...

2021-02-28 Thread Jan Mercl
On Sun, Feb 28, 2021 at 9:05 AM 'Dan Kortschak' via golang-nuts wrote: > I'm curious where the meaningful whitespace is in Go (for amounts > differences in number greater than 1). I meant, for example, in regexp notation, ` *` vs `\n *` between a function signature and the opening brace of the

Re: [go-nuts] Contrary to popular opinion...

2021-02-28 Thread Arnaud Delobelle
E.g. compare a = 1 b = 2 And a = 1 b = 2 They do no mean the same in Go. Arnaud On Sun, 28 Feb 2021, 08:05 'Dan Kortschak' via golang-nuts, < golang-nuts@googlegroups.com> wrote: > On Sun, 2021-02-28 at 08:40 +0100, Jan Mercl wrote: > > Actually Go has that problem as well, just

Re: [go-nuts] Contrary to popular opinion...

2021-02-28 Thread 'Dan Kortschak' via golang-nuts
On Sun, 2021-02-28 at 08:40 +0100, Jan Mercl wrote: > Actually Go has that problem as well, just a thousand times smaller. I'm curious where the meaningful whitespace is in Go (for amounts differences in number greater than 1). > FTR, I also think Python's approach to white space is a failure.

Re: [go-nuts] Contrary to popular opinion...

2021-02-27 Thread Jan Mercl
On Sat, Feb 27, 2021 at 10:37 PM Bob Alexander wrote: > Try removing all the space from your post and see how understandable it is, > or remove all indentation from a Go program, etc. (Hmm, that would make > formatters a lot easier to write... ) Removing all spaces makes most languages

Re: [go-nuts] Contrary to popular opinion...

2021-02-27 Thread Bob Alexander
Well, it seems that you don't like Python any more :) But I do like it -- and I like Go too. I'd guess that lots of other folks have figured out positive answers to your Python issues, 'cause Python ranks high on the popularity lists. E.g on the issue of invisible characters having semantic

Re: [go-nuts] Contrary to popular opinion...

2021-02-27 Thread robert engels
Don’t bother… Python is an abomination. Perfect for one-off scripts - anything beyond that steer clear. > On Feb 27, 2021, at 12:59 PM, Amnon wrote: > > I liked Python too. > But I never really understood why anyone though that dynamic typing was a > good idea. > Or why performance was so

Re: [go-nuts] Contrary to popular opinion...

2021-02-27 Thread Amnon
I liked Python too. But I never really understood why anyone though that dynamic typing was a good idea. Or why performance was so pathologically bad, or why they decided to make invisible characters semantically significant, or why python applications were so fiendishly complicated to deploy, or

Re: [go-nuts] Contrary to popular opinion...

2021-02-27 Thread bobj...@gmail.com
Thanks, Amnon, for that well known quote from the Python world. Python has been one of my favorite languages for around 20 years. Even had the honor of meeting Guido while we were both working at Google a while back. Please, Python, do not integrate a dependency management system into your

Re: [go-nuts] Contrary to popular opinion...

2021-02-25 Thread Amnon
*There should be one-- and preferably only one --obvious way to do it. * >From the Zen of Python. But also good advice for Gophers. On Friday, 26 February 2021 at 01:03:00 UTC skinne...@gmail.com wrote: > I have a wonderful video of a GO program I wrote over 5 years ago which > will not

Re: [go-nuts] Contrary to popular opinion...

2021-02-25 Thread David Skinner
I have a wonderful video of a GO program I wrote over 5 years ago which will not compile today due to my failure to vendor one lost module. I too had multiple paths in my GOPATH and it varied upon the client. I consider the new modules an improvement but the adaptation has not been without

Re: [go-nuts] Contrary to popular opinion...

2021-02-25 Thread Marcin Romaszewicz
Given the writing on the wall that GOPATH is going away, what I have done is created a single module where I keep all my own code, each different experiment in its own subdirectory. I named it "github.com/...", but never submitted it to github, so in the future I can do that without too much fuss

Re: [go-nuts] Contrary to popular opinion...

2021-02-25 Thread Bob Alexander
Agreed -- module mode is great for "delivered code". But in a personal single machine single developer environment, all the extra complexity and manual overhead might not worth it. I'd guess that most students and hobbyists don't even use SCMs. My point was that GOPATH mode is good for them. On

Re: [go-nuts] Contrary to popular opinion...

2021-02-25 Thread Robert Engels
That is 100% true but a important point is that using GOPATH requires manual dependency management via ‘vendoring’. This can be very labor intensive and error prone - leading to security issues in your delivered code. > On Feb 25, 2021, at 3:08 PM, Bob Alexander wrote: > >  > GOPATH mode

[go-nuts] Contrary to popular opinion...

2021-02-25 Thread Bob Alexander
GOPATH mode does *not *limit your Go code to a single directory. I've seen this misunderstanding stated in probably hundreds of various posts. $GOPATH allows specification of multiple directories. I've used that capability for several years to distribute my Go code to my personal general library