4 ms·
> The syntax is very weird after writing too much C#. Sometimes I have the feeling, that declarations are reversed just for the sake of it. Rob Pike explains t
by saisasidhar 7y ago
> The syntax is very weird after writing too much C#. Sometimes I have the feeling, that declarations are reversed just for the sake of it.
Rob Pike explains the reasons behind Go's deceleration syntax in this blog post: https://blog.golang.org/gos-declaration-syntax https://blog.golang.org/gos-declaration-syntax
- zubspace 7y agoWow, this is really mind-opening. Everything makes sense now. Thank you. It's also funny, that they stuck to the * pointer notation which led to the problem, where they could not tell apart a pointer from a multiplication, so they put it to the left of the variable name. It's the small things... But I guess * is just too convenient and ingrained.