On Mon, 05 Apr 2010 09:57:17 +0100
Matthew Seaman <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 

> I've always found that 'unless' makes a great deal of sense when used
> in the alternate syntax:
> 
> do_foo()
>     unless $condition ;
> 
> As far as I know, perl and its descendant ruby are the only
> programming languages that let you put the condition test after the
> action, 

IMO this is a bad mistake that other languages were quite right not to
copy - a test shouldn't come after a block of code unless it's evaluated
after the block (as in repeat...until) 

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to