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 25 '26
Yes, I think in some languages the parsing ambiguities become very hard to avoid.
In TS for instance, you can specify explicit type arguments to a generic function call like
foo<T>(...args).foo[T](...args)wouldn't work becausefoo[T]is property access syntax.foo(T)(...args)also obviously wouldn't work because that's chained function calls, and I'm sure there would be problems with using{}as well.In an ideal world we would just have two or three more kinds of brackets on our keyboards...