News for hackers. Stuff that matters.
Re:Why do programming languages use curly braces? by mirkules on Tuesday February 26, 2013 @11:47AM (#5286683)
My preference on an American keyboard is still curly braces, probably because of my typing style.

In order to type { }, I hit the shift key with my right pinkie finger, which shifts my entire hand over and allows me to hit the brackets with precision with my middle or ring finger. When I type [ ], I use my middle and ring fingers but without anchoring my hand to the right shift key, and I often hit the wrong character.

This is why I always found it awkward to program in Objective-C due to their extensive use of square brackets, whereas Java or PHP (or other C-like languages) come a lot more naturally (curly braces are more often used than square ones).

There are no comments on this comment yet.