3 ms·
Assume all references to valid_token were to an opposite method named ‘invalid_token’ and suddenly the ‘unless’ will make much more sense. X = 5 unless invalid
by evolve2k 4y ago
Assume all references to valid_token were to an opposite method named ‘invalid_token’ and suddenly the ‘unless’ will make much more sense.
X = 5 unless invalid_token
Much better than
X = 5 if !invalid_token
Here the humans inability to easily process double negatives, is now an argument for using ‘unless’ in the right circumstances.