News for hackers. Stuff that matters.
Re:The computers are fast, but you don't know it by chowells on Friday June 17, 2022 @02:18AM (#31774667)
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/understandi...

Re:The computers are fast, but you don't know it by doctor_eval on Friday June 17, 2022 @08:31AM (#31777123)
To 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.