in reply to (tye)Re3: mapcar -- map for more than one list
in thread mapcar -- map for more than one list
A note about if not versus unless.
I am diametrically opposed to tye here. The only win for unless is to make some things be said in a way that more directly matches how we speak. But I would *never* use it for complex expressions. As I have found from painful experience, people do not apply De Morgan's laws on the fly. In other words while debugging it takes a lot of thought to translate:
and recognize that asunless (A or B) { .... }
After you have been there a couple of times, you learn not to use unless with complex expressions. :-)if (!A and !B) { ... }
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re4: mapcar -- map for more than one list
by tye (Sage) on Jan 22, 2002 at 02:37 UTC | |
by tilly (Archbishop) on Jan 22, 2002 at 04:22 UTC |
In Section
Cool Uses for Perl