4 ms·
> if expr: x = 1 But PEP8 and now the all-too-popular Black formatter disallow this. I think it's fine. The momoization/optimization point is exactly the opp
by z9znz 4y ago
> if expr: x = 1
But PEP8 and now the all-too-popular Black formatter disallow this. I think it's fine.
The momoization/optimization point is exactly the opposite of what should be a default use case for a beginner friendly language. And I highly doubt this mutable default design was intentional for these purposes. They are footguns.