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.
brackets: []
braces:{}
Versus:
brackets: ()
square brackets: []
curly brackets: {}
Still drives me less mad than "inverted commas" though.
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” :)
I have never heard anyone call () "brackets". Is it more regional than just the US maybe?
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.
Together they are just brackets, not open brackets.
I assumed the comment saying "parens: ()" was talking about US, but the replies seem to be interpreting the opposite.
I've only ever called them brackets.
Was PEMDAS for us.
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.
parens: ()
squares: []
braces: {}
basically a mixed of British and American English
Edit: okay, apparently there is just complete bracket anarchy across America and words have no fixed meaning.
(We do have “square brackets” however.)
Peace, man!
In all seriousness, you dodged a bullet. Do you remember what problem or set of problems they asked you to solve?
Also, what made the interviewing team awesome in your opinion?
That really cheered me up this morning, I met my wife at work as well.
Thank you for sharing, this started of my day very well, had a hearty chuckle.