5 ms·
»> ... "curly braces" ... « Ugh. Braces are "curly" — there are no "square braces" or "round braces." Needlessly redundant and confusion-inducing. Can we ple
by wlindley 3y ago
»> ... "curly braces" ... « Ugh. Braces are "curly" — there are no "square braces" or "round braces." Needlessly redundant and confusion-inducing. Can we please eradicate this circumlocution from programming language?
- _Wintermute 3y agoThis is a regional thing. In the UK they're all brackets. Brackets, square brackets, curly brackets.
- lmm 3y agoEven if that's true (and it wasn't in my experience of the UK), no-one calls any character other than {} braces (even with extra qualifiers), right?
- tsimionescu 3y agoThey are also called curly brackets, so I imagine the confusion comes from there, and from the fact that the words "braces" and "brackets" are relatively similar, making them easy to confuse, especially for non-natives.
- ehecatl42 3y agoParentheses (()), braces({}), brackets([]), and chevrons(<>). I concur.
- teddyh 3y ago<http://www.catb.org/~esr/jargon/html/A/ASCII.html http://www.catb.org/~esr/jargon/html/A/ASCII.html>
- tsimionescu 3y agoOr, in British English, brackets(()), curly brackets({}), square brackets ([]).
- iainmerrick 3y agoAnd I’ve heard both “angle brackets” and “pointy brackets” (<>)
- lex-lightning 3y agoSmooth, squiggly, hard, and pointy are my gotos
- PeterisP 3y agoThat would be fine if we could somehow magically change the English language so that this would universally match how people call these symbols around the world - but that's not likely to happen.
- codingdave 3y agoConsidering the worldwide population of coders don't all share a common native language, no - we need to embrace fluidity in our vocabulary.