Re:Ritchie language: power of C and convenience of a high-le...
by SamReidHughes on Monday December 07, 2015 @09:04PM
(#10694304)
Line endings are a different question than indentation.
Language design decisions do matter. "Figure out how to view it in your editor" doesn't do one lick to address the problems of semantic indentation.
Re:Ritchie language: power of C and convenience of a high-le...
by J_Darnley on Monday December 07, 2015 @08:17PM
(#10694131)
God no. Most of those hold no value or any interest for me. Bash only because it is the default shell. And thanks for pointing out why I should avoid the others.
Have you never looked at a diff? Massive whitespace changes hide real changes. Next someone will say "Git has a -w option". To which I say "A diff without whitespace changes in those languages would be useless". I can't test it, apply it, or otherwise use it without re-indenting the source myself.
Re:Ritchie language: power of C and convenience of a high-le...
by adrusi on Monday December 07, 2015 @10:59PM
(#10694703)
Significant-whitespace languages don't introduce any additional whitespace changes because most people keep their code in whitespace-agnostic languages neatly indented anyway.
Re:Ritchie language: power of C and convenience of a high-le...
by J_Darnley on Monday December 07, 2015 @11:23PM
(#10694793)
Then I guess you don't work on any projects that only want to see non-whitespace changes.
Re:Ritchie language: power of C and convenience of a high-le...
by nostrademons on Monday December 07, 2015 @07:20PM
(#10693893)
Swift, where semicolons are optional unless you have multiple statements on the same line.
Also C++, C99, and Java if you count // comments.
Re:Ritchie language: power of C and convenience of a high-le...
by jason_s on Monday December 07, 2015 @07:20PM
(#10693895)
? How does Javascript use semantic whitespace?
Re:Ritchie language: power of C and convenience of a high-le...
by omaranto on Monday December 07, 2015 @07:57PM
(#10694039)
I'm not sure of the details but surely the answer involves semi-colon insertion.
Re:Ritchie language: power of C and convenience of a high-le...
by Turing_Machine on Monday December 07, 2015 @09:09PM
(#10694320)
That's the only one I'm aware of.
Put me in the "if that makes a difference in your code, you're doing it wrong" camp (and yes, I recognize that not everyone agrees, and that argument has already been had too many times).
+ Python + Haskell + Javascript + Go + Ruby + Bash
Anything else I'm missing? Whitespace is useful. Figure out how to view it in your editor and move on already. This is so far beyond bike-shedding it's just a depressing comment on how much programmers obsess on syntax.