Re:Why do programming languages use curly braces?
by dragonwriter on Tuesday February 26, 2013 @11:01AM
(#5286322)
> and why not something more reasonable, like [], which doesn't require the shift key at least on US keyboards
[] are used for indexing, which is probably used more. So regardless of the historical reason, it makes sense to use something visually distinct for blocks.
[] are used for indexing, which is probably used more. So regardless of the historical reason, it makes sense to use something visually distinct for blocks.