2 ms·
> I think we do read code vertically and it is significant in all programming languages Of course it is significant, I was agreeing with you there! But my poin
by vanderZwan 13y ago
> I think we do read code vertically and it is significant in all programming languages
Of course it is significant, I was agreeing with you there! But my point was:
d
o
_
y
o
u
_
e
v
e
r
_
w
r
i
t
e
_
c
o
d
e
_
l
i
k
e
_
t
h
i
s
?
But maybe I should have worded it differently: we read text in "row-major order", not "column-major order". That's basically the difference I talk about.
Also, there is another difference between newlines and indentation: newlines only go "forward" (next line), whereas with indentation you go back and forth into levels of indentation. It's not the same. The closest thing I can think of is that one language where you could write the exponent of a formula on a line before, faking superscript, or the index of a formula on the next, faking subscript. Making mono-typed source code look like math formulas basically (and probably a pain to type out). That's the only programming context I can think of where newlines are actually significant in a similar fashion to indentation.