4 ms·
Do you make them replace `each` iterators with `for` loops as well, just because that’s “how it’s done” in your preferred language? The “fail early” principle
by zoky 3y ago
Do you make them replace `each` iterators with `for` loops as well, just because that’s “how it’s done” in your preferred language?
The “fail early” principle is a widely accepted pattern, and that’s exactly what the `unless` statement facilitates, while communicating that is exactly what it’s doing.