4 ms·
blah blah blah. clickbait title, same old complaints about language syntax that doesn't agree with someone's personal preference, etc... Some people like brace
by jdc0589 10y ago
blah blah blah. clickbait title, same old complaints about language syntax that doesn't agree with someone's personal preference, etc...
Some people like braces, like me. It doesn't matter at the beginning/middle of a code block much, but the clearly visible terminating } is what does it for me. I need that.
If every whitespace significant language had strict formatting standards, shipped with a formatting utility (e.g. gofmt), and actually enforced formatting standards everywhere (including stuff like number of empty lines between functions, etc...), then I would be on board with no braces and whitespace significance. Until then, the inconsistencies you run in to in whitespace significant land just don't work for my brain.
Then, some people hate braces and love whitespace significance. Cool. doesn't matter. the end.
- unsignedqword 10y agoI've been using a language that uses python-style indentation (Nim) and while I've grown to like to like the language itself, the back of my mind pines for braces. At least using braces, I can immediately auto-indent a region of code and not have to worry about anything. I sucked it up, though, and I got used to the pythonic syntax anyway. Either way, opening an article that says "Your programming language is probably unproductive" which immediately devotes itself to whining over pedantic syntax bullshit...makes me not want to read it.
- nimmer 10y agoCan you provide an example on how a formatting standard would help showing where a block terminates?