Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
keeyan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
keeyan
7y ago
True, I'm not saying we should do it since not everybody would follow and it would just cause more pain. But if everybody would then I think it would work better than the current approach. I still indent my code (obviously) and follow
2.
▲
by
keeyan
7y ago
Most text editors have this understanding anyway. That's how they autoindent code or colour keywords and variables. Yeah I guess I'm just proposing a different common format but in the end I believe it to be slightly better since
3.
▲
by
keeyan
7y ago
Well that's the point really. Nobody would be looking at unindented code. The point of my post is that the only reason for indentation is visualisation purposes. It's not there to be read by the machine (except for in Python) and
4.
▲
Why Indent Code?
2 points
by
keeyan
7y ago
|
9 comments