On Wed, Sep 1, 2010 at 11:12, Shlomi Fish <[email protected]> wrote:
> On Wednesday 01 September 2010 18:06:37 Brandon McCaig wrote:
>> On Mon, Aug 30, 2010 at 2:25 AM, Uri Guttman <[email protected]> wrote:
>> > but i never use until anyhow. i use unless a fair amount as i don't like
>> > if ( ! EXPR). my current boss has asked me to stop using unless but i am
>> > not stopping.
>>
>> It seems silly to use unless, but never use until. :) I think both
>> make the code more clean and readable, at least for native English
>> speakers.
>
> Well, I can testify that unless makes the code more confusing for me as a non-
> native speaker of English. Whenever I encounter an unless, I have to say to
> myself: "OK, this translates to if (not COND()) which means this and that.".
> Maybe it's because Hebrew does not have a commonly used word for "Unless" (we
> have "Ilmalé" but it's not in common use.) and we say "If not" instead. So I
> never "unless" in my code - only "if (!)".
snip

I don't care if you use unless or if, but please don't use if (!).
Say if (not) instead.  The looser binding makes it easier to use and
the fact that it is three letters long (rather than one skinny
character long) makes it some much easier to see.


-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to