normal () and square [] brackets are used commonly, curvy {} brackets - depending on a language used
Programmer layouts usually swap braces {} with square parentheses [].
Banned from Colemak
normal () and square [] brackets are used commonly, curvy {} brackets - depending on a language used
Programmer layouts usually swap braces {} with square parentheses [].
Banned from Colemak
Examples?
I don't know many programmer layouts, but from those I do, only Workman-P swaps {} []. The fact that it's like that doesn't necessarily mean it's better - as I said, from my experience {} are used less than [] when programming.
My friend's old project. All .cpp files (>2k lines): [] - 414, {} - 302. (Made using some ready-made tools for a better GUI.)
Previous version, all the code was written by him: biggest .cpp file - over 1200 lines: {} - 59, [] - 479.
I see Patorjk's Programmer QWERTY swapping that too.
Banned from Colemak
I'd be interested in seeing the optimizing algorithm that was used. In text and preferably also in code. Or did I miss it ?