|
|
|
|
|
by robocat
1508 days ago
|
|
But don’t many (most?) US programmers call () parentheses? I assume non-programmers in the US call them brackets? 1.9M results: lisp "parentheses" -brackets 800k results: lisp "brackets" -parentheses I admit result counts are more similar if lisp is replaced with “python” or “golang”, but square brackets come up more often for those languages. Disclaimer: I am searching from google.co.nz, and I presume search result counts are not a great proxy measurement for actual usage! |
|
If you’re in a context where only one of the bracket types would normally be used, you can just call them “brackets.” Since many people never really use [] and {}, “brackets” casually refers to ().
To disambiguate, you can call () “open brackets”, [] “square brackets”, and {} “curly brackets.”
And for the cherry on top, {} can be called “curly braces.” That’s my preferred term for them. But it’s awkward to call [] “square braces” and () “open braces” :)