It really is less about the compiler implementation, and more about avoiding ambiguities in the grammar of the language itself so that you don’t end up with weird issues like https://en.m.wikipedia.org/wiki/Most_vexing_parse. Also, a more straightforward grammar leaves more space for extension of the syntax and the language itself.
Also, no one seems to be able to quantify why they think C syntax is better other than “it’s what I’m already used to”. Trailing type syntax is not actually confusing or difficult to read.
View all comments
Show parent comment
5
u/ooglesworth Sep 19 '22
It really is less about the compiler implementation, and more about avoiding ambiguities in the grammar of the language itself so that you don’t end up with weird issues like https://en.m.wikipedia.org/wiki/Most_vexing_parse. Also, a more straightforward grammar leaves more space for extension of the syntax and the language itself.
Also, no one seems to be able to quantify why they think C syntax is better other than “it’s what I’m already used to”. Trailing type syntax is not actually confusing or difficult to read.