News for hackers. Stuff that matters.
Re:Show HN: Python library for functional programming by andreareina on Thursday December 14, 2017 @04:12AM (#15920919)
This is a peeve of mine, and one of the reasons that I find myself preferring to write javascript these days rather than python. Never would have thought I'd say that.

I'm not up to snuff on my compiler theory, but I think at the least this would require upgrading to a two-token lookahead parser, and it might also upgrade the python grammar from context-free to context-sensitive. Accordingly, I wouldn't expect this to get implemented -- IIRC ease of parsing was/is one of the big design goals.

Re:Show HN: Python library for functional programming by Doxin on Thursday December 14, 2017 @05:23AM (#15921208)
In python line continuations are a pre-processing step as far as I'm aware (together with inserting INDENT and DEDENT tokens). In the same vein you could just do a simple loop over the token list and remove the appropriate NEWLINE tokens before going to the actual parsing.
Re:Show HN: Python library for functional programming by yen223 on Thursday December 14, 2017 @05:29AM (#15921227)
Whitespace-sensitive blocks aren't easily parsed either.
Re:Show HN: Python library for functional programming by adrianN on Thursday December 14, 2017 @04:30AM (#15920998)
Line continuations could be treated by the Lexer.