Jeena@piefed.jeena.net to Programmer Humor@lemmy.mlEnglish · 26 days ago1 hour in Javapiefed.jeena.netimagemessage-square102fedilinkarrow-up1739arrow-down137 cross-posted to: [email protected]
arrow-up1702arrow-down1image1 hour in Javapiefed.jeena.netJeena@piefed.jeena.net to Programmer Humor@lemmy.mlEnglish · 26 days agomessage-square102fedilink cross-posted to: [email protected]
minus-squareEphera@lemmy.mllinkfedilinkarrow-up2·26 days agoTorvalds wrote this about C. There’s plenty languages where it’s much more common and less of a complexity indicator to open up scopes.
minus-squarenaught@sh.itjust.workslinkfedilinkarrow-up6·26 days agoCorrect, I linked the source of the quote. My implication is the general idea is applicable here. Is python one of these languages where it is idiomatic to nest code deeply? The Zen of Python: Flat is better than nested. From the python I have seen and written, deep nesting is avoided.
Torvalds wrote this about C. There’s plenty languages where it’s much more common and less of a complexity indicator to open up scopes.
Correct, I linked the source of the quote. My implication is the general idea is applicable here. Is python one of these languages where it is idiomatic to nest code deeply?
The Zen of Python:
From the python I have seen and written, deep nesting is avoided.