(no title)
alexander-litty | 3 years ago
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” :)
_morgs_|3 years ago
Together they are just brackets, not open brackets.
vcxy|3 years ago
I have never heard anyone call () "brackets". Is it more regional than just the US maybe?
da_chicken|3 years ago
I've never seen or heard any programmer call () brackets or braces. It's always parentheses. I may have heard a math or science teacher call them all brackets or braces, however, since they are synonymous there outside of odd exceptions like interval notation.
alexander-litty|3 years ago
usrn|3 years ago