|
|
|
|
|
by snogglethorpe
4842 days ago
|
|
Actually Go's use of := is almost anti-pascal: it means something rather different, but similar enough to be confusing, and so is likely to confuse anybody who's used to the vastly more common meaning of := in Algol-family languages (Pascal, Ada, etc). ... and then there's Go's screwed up version of Pascal-style declaration syntax... [a link to my earlier rant on this subject: http://news.ycombinator.com/item?id=4520104 (TL;DR: Go: "var foo, bar int"; Pascal: "var foo, bar : int"; the colon vastly improves readability, and has no real drawback)] |
|
We have gofmt for that :)