3 ms·
Am I alone in finding Go's syntax atrocious? It just seems so needlessly obtuse, and puts me off to an otherwise great ecosystem.
by aphextron 9y ago
Am I alone in finding Go's syntax atrocious? It just seems so needlessly obtuse, and puts me off to an otherwise great ecosystem.
- Svenskunganka 9y agoWhat do you find obtuse with it? I don't care that much for syntax when looking at a language, because it is something you can get used to fairly quickly. The error checking is quite repetetive though.
- aphextron 9y ago> I don't care that much for syntax when looking at a language, because it is something you can get used to fairly quickly. The error checking is quite repetetive though I agree, it's entirely an aesthetic issue. Just choices like using "func" instead of just writing out "function" or using an actual shorthand like "fn" really bother me. Also the seemingly arbitrary choices that run against the grain of C inspired languages like using "[]<type>" instead of "<type>[]" to initialize an array.
- amw-zero 9y agoThose examples both seem a little like nitpicking. The argument that something is not like C is particularly interesting to me, because C has arguably the most obtuse and unintuitive syntax out there. We just accept it as normal because we've seen it so much. I encourage you to look back and think about how you felt when reading your first C for loop.
- anotherbrownguy 9y agoTry rust for a while and you'll love Go.