News for hackers. Stuff that matters.
Re:A function decorator that rewrites the bytecode to enable... by BiteCode_dev on Tuesday September 21, 2021 @07:47AM (#28604069)
Python added a GOTO a few years ago, by mistake, with asyncio.ensure_future(): https://vorpus.org/blog/notes-on-structured-concurrency-or-g...

We are still paying this mistake as of today: most devs don't scope their async tasks lifecyle leading to a huge spaghetti code.

GOTOs are too easy to misuse.

We used to have only GOTOs, no loop, no if... But specialized keyword are better: they enforce a cleaner code, leverage conventions, play batter with tooling and make the whole experience easier to read and debug.

There are no comments on this comment yet.