Brackets?! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Brackets?!

In most of the programming tutorials and coding challenge videos, I watch, they almost always call parenthesis 'brackets'. Why is that? Is it because it's shorter, easier to pronounce? Have they always been called brackets? I thought these were brackets: '[]'. This is probably a stupid question but it's something that has confused me for the longest time.

27th Feb 2018, 1:45 PM
RuthlessDust
RuthlessDust - avatar
4 Answers
+ 3
() = round brackets [] = square brackets {} = curly brackets It's one of those American English versus English type of things. I'm American and we call () parenthesis also, but they're also called round brackets in "real" English.
27th Feb 2018, 1:52 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 7
@Jakob Marley provided some good examples. 👍 For completeness, <> corresponds to angle brackets and curly brackets are known as braces too! 😉
27th Feb 2018, 3:17 PM
Zephyr Koo
Zephyr Koo - avatar
+ 3
@Jakob Marley Thank you!
27th Feb 2018, 1:53 PM
RuthlessDust
RuthlessDust - avatar
+ 1
@Zephyr Koo, Thanks! I've heard parenthesis called braces before but it's not as often.
27th Feb 2018, 9:27 PM
RuthlessDust
RuthlessDust - avatar