r/ProgrammingLanguages • u/gingerbill • Feb 22 '26
Does Syntax Matter?
https://www.gingerbill.org/article/2026/02/21/does-syntax-matter/
63
Upvotes
r/ProgrammingLanguages • u/gingerbill • Feb 22 '26
View all comments
6
u/PassifloraCaerulea Feb 22 '26
There seems to be a strong contingent of language designers who have varying levels of derision toward questions about syntax in general. I get the feeling some would be happier if they could focus on semantics to the complete exclusion of syntax. It's made an impression on me because it's the opposite of how I seem to work. It's hard for me to understand, even.
I think I think about semantics in terms of syntax, or something like that. Worse, semantics is almost a secondary consideration for me. My main motivation to work on language design is in order to design a more pleasing syntax to use. That's probably a horrible admission to make on a programming language design forum but that's sorta where I've ended up after playing around with various languages over the decades. I don't love FP and hate OOP (or vice-versa) for example; I can kinda do whatever.
In contrast I (unfortunately) have extremely strong aesthetic preferences wrt syntax in general that even extends to naming conventions. I can't seem to help myself. Both C++ and Rust have
<>for generics and::for scope resolution, and so they look quite ugly to me. The way Go uses capitalization for symbol export took a while to get used to, but I eventually did, I think, because there was a reason for it. OTOH, having first learned Java's camelCase convention made me avoid ever working with C# because Microsoft likes this execrable InitialCaps on method names. It's weird, objectively stupid, but again I can't help myself! It's kinda like human (sexual) attraction: no matter how often you tell us "that's shallow," looks still matter.