Live data from Hacker News

I Can't Go Anymore

blog.numilani.me

1–4 of 4 posts

Re: I Can't Go Anymore

#3

Golang provides automatic formatting via go fmt: that would take care of bracket-else alignment in one operation. Never mistake a badly-designed plane for pilot inexperience.

sure, that takes care of it once...but now the next time I go to work on that section of code, the else is back where I don't want it.

The issue isn't the lack of a formatter, the issue is that some things should be left to preference rather than strictly enforced.

Re: I Can't Go Anymore

#4
post #3

Golang provides automatic formatting via go fmt: that would take care of bracket-else alignment in one operation. Never mistake a badly-designed plane for pilot inexperience.

sure, that takes care of it once...but now the next time I go to work on that section of code, the else is back where I don't want it. The issue isn't the lack of a formatter, the issue is that some things should be left to preference rather than strictly enforced.

By removing the arbitrary preferences from code formatting, one can focus on the substance of the code itself, and not its accidental decoration; in the case of generated code, for example, this can be quite beneficial.