You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to come with better code examples as per comments below:
The “Non-Compliant” snippet uses pure expressions (bit ops, tuple permutation) with no side effects. The introduction claims risk from “expressions that read & write to the same object”.
The compliant solution has identical output. While it's certainly much easier to understand and maintain,
given the introduction I would expect examples that demonstrate "unintended side effects" or a result that is "surprising and incorrect"