Earlier quoted context omitted.
Another "crazy" idea: I'd like the compiler to reformat code to match strict style conventions. Why? Sometimes there's no "right" style. Sometimes novices need training wheels. In the long run, style doesn't matter, but in big projects code is easier to read when style is consistent. It's also easier to onboard when code follows industry-standard styles. Would it be better when a language gently pushes everyone to th…
> code is easier to read when... This is almost always a subjective opinion. I've worked on many projects where people reformat large portions of the codebase to make it "easier to read", and in the end they waste a bunch of time, make using `git blame` a pain, and subjectively either make no difference in code readability or make the code harder for half the team to read. > I'd like the compiler to reformat code...…
Ever start a new job with a bulk of code you didn't write? Worse, ever take over code written by novices who ignore common conventions?
The whole point is to see if having a standard style is easier in the long run.