| ▲ | still_grokking 2 days ago | |||||||
> In the end it was "so bad so sad you can always reenable brackets". This is not true. Nobody ever proposed to replace the old syntax! The new syntax was, and is, optional, and that's exactly like designed from the very beginning. | ||||||||
| ▲ | Rogach a day ago | parent [-] | |||||||
They didn't explicitly propose replacing the syntax, true. But to an outsider, it sure looked like the new syntax was a priority - all the examples and code snippets in the official docs defaulted to the new syntax, making them infuriating to read for someone accustomed to braces. If I recall correctly, later they added a switch allowing one to choose between syntax versions in the online docs. But it wasn't done right from the start, and when that was finally added most of the damage was done, people already lost interest. I understand that removing braces might feel harmless - but it really makes the code harder to read for people that use braces all the time. If someone's brain is accustomed to seeing braces everywhere, reading code with them becomes almost automatic, handled by "low-level" parts of the brain. If the syntax is changed, then "low-level" brain areas have to pass work to "higher-level" areas, which increases energy requirements and processing latency. So reading unfamiliar syntax is literally harder. Incidentally, that's also why many people are so picky about grammar - grammatical errors make the text noticeably harder to read. Source: have a degree in neurophysiology. | ||||||||
| ||||||||