Re:Sylph: the programming language I want
by mixmastamyk on Sunday March 01, 2015 @10:55PM
(#9130244)
Editors know that a python line ending in a colon must be indented and so indent it automatically. It wouldn't be hard to use the same method to reindent it.
[ Parent
| on HN ]
No, lines following a line ending in a colon must be indented.
But the OP's point is that you can't know how many lines make up the indented block, since there is no explicit block-end-marker left if the indent is gone.
Re:Sylph: the programming language I want
by balquhidder on Monday March 02, 2015 @04:09AM
(#9131000)
>No, lines following a line ending in a colon must be indented.
Except if you have, for example, an if statement. if x: y() is valid.
Re:Sylph: the programming language I want
by mixmastamyk on Monday March 02, 2015 @05:16PM
(#9134722)
Yep, that's what I meant.