Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 227 Bytes

almost_swapped.md

File metadata and controls

18 lines (14 loc) · 227 Bytes

almost_swapped

What it does

Checks for foo = bar; bar = foo sequences.

Why this is bad

This looks like a failed attempt to swap.

Example

a = b
b = a

...should be written as...

a, b = b, a