News for hackers. Stuff that matters.
Re:Why do programming languages use curly braces? by calinet6 on Tuesday February 26, 2013 @10:31AM (#5286119)
Well... why not?

--Edit: No, seriously, why not? There are only a few different opening-closing character pairs on a keyboard: [], (), <>, {}, /\, etc. It's not that different to type any of them.

So why is this even a question? It's because we used the others up and that was next on the list, and it looks somewhat logical as a container of things. So again, wholly and completely, the answer is in the question: "why not?"

Re:Why do programming languages use curly braces? by jonascopenhagen on Tuesday February 26, 2013 @11:57AM (#5286751)
Because on non-English keyboards curly braces are a pain to type. E.g. in Danish it requires Alt + Shift + 8 (on a Mac), and if you look at the comments above you'll see that the problem is the same for many other languages.