DEV Community

Discussion on: Dead Simple Python: Lambdas, Decorators, and Other Magic

Collapse
 
codemouse92 profile image
Jason C. McDonald

That would still be considered impure, from a functional standpoint. If it makes sense in your code base, you might be able to get away with it, but it's still not recommended, as your unspoken intended rule may not be respected by future-you.

Collapse
 
ardunster profile image
Anna R Dunster

Probably worth doing something to idiot proof it then, who knows who might try to do something with my private project in the future o.o XD Better habit, anyway!

Thread Thread
 
codemouse92 profile image
Jason C. McDonald • Edited

Usually the worst future idiots using our projects are our own overworked selves.

Thread Thread
 
ardunster profile image
Anna R Dunster

That's exactly who I'm most worried about 😅