Tugger the SLUGger!SLUG Mailing List Archives

Re: [coders][NRS] 1st night


Benno wrote:

> Hopefully, one of the ruby guys can explain it more. I guess I'm asking 
> is the construct
> 
> x unless y
> 
> The same as the construct:
> 
> if not y
>    x

Yes it is, a concept borrowed from Perl. I even allows brain damage
like:


    {
       # Huge chunk of code. 
    }
    unless condition

Looks like theres a potentially good Ruby troll there. Cw :

     http://lists.slug.org.au/archives/slug/2005/09/msg00346.html

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"I consider C++ the most significant technical hazard to the survival
of your project and do so without apologies." -- Alistair Cockburn