|
|
Subscribe / Log in / New account

Python multi-level break and continue

Python multi-level break and continue

Posted Sep 1, 2022 21:00 UTC (Thu) by bartoc (guest, #124262)
In reply to: Python multi-level break and continue by eru
Parent article: Python multi-level break and continue

Strongly agree with this take. If you aren't going to reuse it then it's usually not worth splitting stuff out it's own function. Just let me read the darn code. If the function is doing some well known algorithm maybe it _is_ worth it, but even then sometimes a comment is just as good as a function.

Keeping things inline can make optimization opportunities more clear and make anti-optimizations stick out more, as well.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds