Re:Brython – A Python 3 implementation for client-side web p...
by mixmastamyk on Monday July 06, 2020 @10:54AM
(#23748549)
"Whitespace syntax" is not the problem. It is that Guido thinks that the anonymous callback style is harder to read and therefore something to avoid most of the time. I tend to agree.
[ Parent
| on HN ]
Re:Brython – A Python 3 implementation for client-side web p...
by EamonnMR on Tuesday July 07, 2020 @11:38PM
(#23766666)
It's the problem inasmuch as the way you'd spell an anonymous block is non-obvious considering that it would have to work as an argument to a function or element of a literal and in both of those cases indentation is freeform.
Re:Brython – A Python 3 implementation for client-side web p...
by mixmastamyk on Wednesday July 08, 2020 @01:52PM
(#23772361)
Given that lambda won't accept more than one expression even on its own dedicated line, I think the discussion is moot.
I could imagine a working syntax as indentation already works properly between parens and brackets.
Re:Brython – A Python 3 implementation for client-side web p...
by VectorLock on Monday July 06, 2020 @11:18AM
(#23748830)
And I think a lot of people are starting to realize that "callback spaghetti" might not be the best structure to give your code either.