3 ms·
In Go, when you export function names they are capitalised. Eg MyFunc() would be exported and myFunc() is not. This always looks so jarring to me and I’ve avoid
by cgh 3y ago
In Go, when you export function names they are capitalised. Eg MyFunc() would be exported and myFunc() is not. This always looks so jarring to me and I’ve avoided Go largely because of it, which must rank as one of the more snowflake reasons to avoid a programming language.
- mst 3y agoFor brave service in the forces of self-awareness, I hereby award you https://trout.me.uk/medal.jpg https://trout.me.uk/medal.jpg May you wear it with pride.
- ivanjermakov 3y agoYes, I hate it. And in general, capitalized function names break mental model of inferring token kind by its name. In my world, capitalized token is always a type, lowercase is a variable (or property, function, etc). Popular counter-argument is that it can be fixed with syntax highlighting, but for me it's a flaw in the language syntax.