Comment on Left to Right Programming

<- View Parent
eager_eagle@lemmy.world ⁨4⁩ ⁨days⁩ ago

from X import *

That’s malpractice in most cases, and thankfully, becoming more rare to find in the wild. Any decent linter will shout at you for using star imports.

What he’s trying to do is to get people to not use non-LTR approaces when designing APIs.

Then he should have picked examples of APIs that break this, not use the built-in functions. Because as it reads now, it seems he is just against established conventions for purism.

this problem is huge in C libraries

yeah, one of my favorite things about python is that everything not in the language itself is either defined in the file, or explicitly imported. Unless, like mentioned, you have anti-patterns like star imports and scripts messing with globals().

source
Sort:hotnewtop