Re:Choosing Nim out of a crowded market for systems programm...
by bobbylarrybobby on Friday November 25, 2022 @08:26PM
(#33748900)
Programming languages shouldn't even consider whitespace (except perhaps new lines) syntactically important at all, so the whole discussion is silly. Once you've decided whitespace is important you might as well make emoji part of the syntax.
[ Parent
| on HN ]
Re:Choosing Nim out of a crowded market for systems programm...
by throw827474737 on Friday November 25, 2022 @08:49PM
(#33749033)
Why not? Making identation part of the syntax allows more for less?
Re:Choosing Nim out of a crowded market for systems programm...
by ghoward on Friday November 25, 2022 @09:19PM
(#33749210)
Because indentation-based languages have very limited formatting they can do. They can't do any indentation formatting.
Re:Choosing Nim out of a crowded market for systems programm...
by bobbylarrybobby on Friday November 25, 2022 @10:29PM
(#33749605)
You cannot cut and paste freely when indentation matter
Re:Choosing Nim out of a crowded market for systems programm...
by throw827474737 on Sunday November 27, 2022 @03:21AM
(#33761376)
Yes ok, but this is not very limiting and doesn't make this approach a ridiculous and failed one to start with, as the OP originally suggested and those languages which do it disprove already?
Re:Choosing Nim out of a crowded market for systems programm...
by tmtvl on Friday November 25, 2022 @09:13PM
(#33749166)
I disagree: if we make languages have NWS (Non-optional WhiteSpace) then we can easily disambiguate between:
let traversed-distance := yard-length;
And: let traversed-distance := yard - length;
Which is valuable as kebab-case is best case.