News for hackers. Stuff that matters.
Re:The $440M software error at Knight Capital (2019) by coolhoody on Monday May 02, 2022 @06:37PM (#31241998)
> handwriting C /…/ reading out what I'd written, semicolons and all, to the interviewer.

I had to re-read it to make sure you are not joking. The fact that you were not made me laugh harder.

I'm now just saying "retuuurn" in various exaggerated accents.

Re:The $440M software error at Knight Capital (2019) by munificent on Monday May 02, 2022 @08:04PM (#31242695)
I'm picturing them arguing vigorously over what character the word "bracket" specifies in American versus British English.
Re:The $440M software error at Knight Capital (2019) by brigandish on Monday May 02, 2022 @08:09PM (#31242741)
Are brackets different in American English? I'd say the Queen should order a second burning down of Washington but, the way things are going, the locals will probably get to it soon.
Re:The $440M software error at Knight Capital (2019) by fourthark on Monday May 02, 2022 @08:26PM (#31242846)
One difference is that we don’t have “round brackets” over here, only parentheses.

(We do have “square brackets” however.)

Re:The $440M software error at Knight Capital (2019) by ILMostro7 on Tuesday May 03, 2022 @01:22AM (#31244951)
brackets are for squares.

Peace, man!

Re:The $440M software error at Knight Capital (2019) by sunjester on Tuesday May 03, 2022 @01:56AM (#31245137)
squares are for brackets.
Re:The $440M software error at Knight Capital (2019) by usrn on Monday May 02, 2022 @09:46PM (#31243423)
I've heard "lumala" or so but most people just say "paren."
Re:The $440M software error at Knight Capital (2019) by 0des on Tuesday May 03, 2022 @12:46AM (#31244737)
People who say paren are monsters.
Re:The $440M software error at Knight Capital (2019) by c3534l on Monday May 02, 2022 @08:25PM (#31242842)
parens: ()

brackets: []

braces:{}

Versus:

brackets: ()

square brackets: []

curly brackets: {}

Still drives me less mad than "inverted commas" though.

Re:The $440M software error at Knight Capital (2019) by c3534l on Monday May 02, 2022 @11:05PM (#31244026)
There seems to be some confusion. I am saying the top is American - at least as I was taught it in school. The bottom is the more typically British variant. But I think the reality is the both America and Britain have variations. To an American ear, bracket to mean parenthesis is not just odd, but wrong. But someone already said they consider bracket to be a catchall term, so obviously this is not universal.

Edit: okay, apparently there is just complete bracket anarchy across America and words have no fixed meaning.

Re:The $440M software error at Knight Capital (2019) by rxhernandez on Monday May 02, 2022 @10:06PM (#31243593)
As someone who has lived on the West Coast of the US for decades, I have never heard any American call (), brackets.
Re:The $440M software error at Knight Capital (2019) by zeven7 on Monday May 02, 2022 @11:01PM (#31243990)
Chiming in as someone who has lived decades in both South East US and North East US. I've also never heard () called "brackets" only "parentheses". This includes in and out of programming circles.

I assumed the comment saying "parens: ()" was talking about US, but the replies seem to be interpreting the opposite.

Re:The $440M software error at Knight Capital (2019) by grouseway on Monday May 02, 2022 @11:57PM (#31244416)
Never? You guys don't use the BEDMAS acronym in grade school for teaching order of operations?

I've only ever called them brackets.

Re:The $440M software error at Knight Capital (2019) by dragonwriter on Monday May 02, 2022 @11:59PM (#31244430)
> You guys don't use the BEDMAS acronym in grade school for teaching order of operations?

No, didn't use any acronym for that in grade school, and when I did encounter one used in grade schools, it was PEMDAS, not BEDMAS.

Re:The $440M software error at Knight Capital (2019) by the_only_law on Monday May 02, 2022 @11:59PM (#31244427)
> BEDMAS

Was PEMDAS for us.

Re:The $440M software error at Knight Capital (2019) by zeven7 on Tuesday May 03, 2022 @01:59AM (#31245160)
Yeah, never. PEMDAS for sure. What part of the country were you in where you got BEDMAS?
Re:The $440M software error at Knight Capital (2019) by 2ICofafireteam on Tuesday May 03, 2022 @10:53AM (#31249104)
FWIW, I did my schooling on the West coast of British Columbia in the early 90's and it was BEDMAS.
Re:The $440M software error at Knight Capital (2019) by p90puma on Tuesday May 03, 2022 @06:54PM (#31254631)
BEDMAS in Canada (Southern Ontario) circa 2000.
Re:The $440M software error at Knight Capital (2019) by ctxc on Tuesday May 03, 2022 @12:40AM (#31244696)
BODMAS for us...
Re:The $440M software error at Knight Capital (2019) by mathieuh on Tuesday May 03, 2022 @03:45AM (#31245765)
BODMAS for me too, although the "O" always confused me, the "E" standing for "exponent" always made more sense to me than the O" standing for "[to the power] of"
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.
Re:The $440M software error at Knight Capital (2019) by mshockwave on Monday May 02, 2022 @10:36PM (#31243785)
Here is what Clang uses: https://github.com/llvm/llvm-project/blob/589b9df4e15131348b...

parens: ()

squares: []

braces: {}

basically a mixed of British and American English

Re:The $440M software error at Knight Capital (2019) by bitwize on Friday May 13, 2022 @05:12PM (#31372582)
I believed it. Amazon tried to make me do the same thing. I stopped the interview.