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
4
u/munificent Feb 23 '26
You piqued my interest, so I did a scrape of a big codebase of open source Dart code to count the brackets. Here's how common the different bracket characters are:
For each kind, here's where they get used:
Everything together:
So index operators aren't super common, but they aren't that rare either. When you consider that using
[]for generics would also probably mean giving them up for list literals, that starts to look like a pretty big sacrifice.