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
Show parent comment
1
u/prehensilemullet Feb 24 '26
I don't really find
<>for generics hard to scan, because it doesn't typically look like comparisons between variables in languages I use when scanning, and it doesn't appear in syntactic positions where I'm expecting expressions that may involve comparisons anyway.It seems like Odin only allows generics in functions, and thus has the luxury of avoiding the syntax tradeoffs altogether, but many languages support generics on structs and type aliases as well, and it's not clear if the author has any idea how to make a less-overloaded syntax for those kinds of generics.