in reply to if/unless and chaining
Because unless should only ever be used as a statement modifier:
Otherwise it just makes your code harder to maintain and some find it confusing (even many who don't realize that they find it confusing). While, as a statement modifier, it can make some code read more naturally. - tye (I'm exactly half serious)die "Tough beans.\n" unless isValidUser();
|
|---|