3 ms·
The formatting python enforces is just "layout reflects control flow". It's really not any more difficult than that, and it's a lot better than allowing layout
by chowells 4y ago
The formatting python enforces is just "layout reflects control flow". It's really not any more difficult than that, and it's a lot better than allowing layout to lie about control flow.
https://www.synopsys.com/blogs/software-security/understanding-apple-goto-fail-vulnerability-2/ https://www.synopsys.com/blogs/software-security/understandi...
- doctor_eval 4y agoTo each their own, but Python's use of indenting for structure is why I never tried it. It just felt, to me, like it was solving one problem with another. I think Go gets this right: it consistently uses braces for structure, but has an idiomatic reformatting tool that is applied automatically by most IDEs. This ensures that the format and indentation always perfectly matches the code structure, without needing to use invisible characters.