4 ms·
How hard is it to throw together an Emacs command that re-styles your parenthesis? I know the creators of Go went so far as a to make a program that converts "v
by lmkg 16y ago
How hard is it to throw together an Emacs command that re-styles your parenthesis? I know the creators of Go went so far as a to make a program that converts "valid" Go code into "canonical" Go code. Parentheses seem like an easy problem to solve. If people can re-parenthesize their code with the press of a button, you can still have the community interoperability without having to sacrifice inclusiveness of personal eccentricities.
- itgoon 16y agoI don't know. I know that other IDEs have such functionality for other languages. I don't worry too much about the previous developer's style, because reformatting is a couple of simple keystrokes. As is reformatting it to another's standard. I think it is a bit odd that anybody still has this argument.
- fogus 16y agoIt's not a matter of forming the parens into another style -- that's a solved problem. The problem is that sticking to individual styles can hurt the adoption or contributions to a project.
- weavejester 16y agoI'd imagine the problem is more when two developers with different formatting preferences are working on the same project at the same time.