Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kmoser
21 days ago
|
parent
|
context
|
favorite
| on:
Formatting code should be unnecessary
There are annoying edge cases where formatting does matter, such as whitespace around HTML text nodes, e.g.:
<span>foo</span>
vs:
<span> foo </span>
grumbelbart2
21 days ago
[–]
Sure, but the same goes for verbatim strings, or leading whitespaces in python. "Code formatting" questions usually only concern themself with those degrees of freedom that do not alter the semantic meaning of the code.
kmoser
21 days ago
|
parent
[–]
Agreed, but my experience is that many formatters will try to "help" by formatting non-code, thereby breaking something.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: