News for hackers. Stuff that matters.
Re:Erg: a statically typed language that is Python compatible by throwaway749201 on Sunday August 14, 2022 @03:59AM (#32457387)
You can add empty lines before and after blocks. The only thing that matters is the indentation. If you see code without empty lines separating different steps, that's pretty badly written Python.
Re:Erg: a statically typed language that is Python compatible by smt88 on Sunday August 14, 2022 @12:28PM (#32460542)
> If you see code without empty lines separating different steps, that's pretty badly written Python.

You're describing literally all of the Python I've ever seen. Look at Flask, for example[1].

Furthermore, without brackets, adding newlines in a code block forces me to then add more newlines between blocks (which Flask also does!)

I would rather just have easy-to-scan, clear characters that demarcate a code block.

1. https://github.com/pallets/flask/blob/main/src/flask/templat...