News for hackers. Stuff that matters.
Re:The $440M software error at Knight Capital (2019) by robocat on Monday May 02, 2022 @08:52PM (#31243013)
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!

Re:The $440M software error at Knight Capital (2019) by alexander-litty on Monday May 02, 2022 @09:31PM (#31243289)
In my lifetime, “parentheses” has been the canonical way to refer to () in the US. “Brackets” is an umbrella term that can describe one or all of (), {}, and [].

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” :)

Re:The $440M software error at Knight Capital (2019) by _morgs_ on Tuesday May 03, 2022 @01:32AM (#31245000)
British English here: "(" is "open bracket" and ")" is "close bracket".

Together they are just brackets, not open brackets.

Re:The $440M software error at Knight Capital (2019) by vcxy on Monday May 02, 2022 @10:41PM (#31243837)
> Since many people never really use [] and {}, “brackets” casually refers to ().

I have never heard anyone call () "brackets". Is it more regional than just the US maybe?

Re:The $440M software error at Knight Capital (2019) by da_chicken on Tuesday May 03, 2022 @12:03AM (#31244463)
Same. I've seen {} and [] both called braces and brackets, though usually in that respective order. The ambiguity is precisely why they are also called curly braces and square brackets. The double naming is more concrete.

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.

Re:The $440M software error at Knight Capital (2019) by alexander-litty on Tuesday May 03, 2022 @04:59AM (#31246180)
Fascinating! While I’ve definitely heard “brackets” used in the midwest occasionally, “parenthesis” is the standard term by far.
Re:The $440M software error at Knight Capital (2019) by usrn on Monday May 02, 2022 @09:48PM (#31243438)
I've always called the curly ones brackets and the square ones braces.
Re:The $440M software error at Knight Capital (2019) by SmellTheGlove on Monday May 02, 2022 @09:14PM (#31243135)
No. Most US non-programmers call () parentheses, not brackets.