Thus it was written in the epistle of Edward Peschko,
> > Maybe call it "if3"
> > 
> >     print do {
> >             if3($A cmp $B){
> >                     "They're the same"
> >             }{
> >                     "$A is before $B"       
> >             }{
> >                     "$B is before $A"
> >     }       };
> > 
> > 
> > I am reminded of the conditionals in TeX -- I think there is
> > a three-lambda if that works this way -- not sure
> > :)
> 
> guys... this idea should die a horrible death. It pretty much falls under the 
> '??' idea (which had far more merit than this IMO) which TOO died a horrid 
> death.

Ed,
  Why should it die a horrible death?  It seems like something which could be
pretty easily implemented:

sub if3 ($&&&) {
  return &{$_[1]} unless $_[0];
  return &{$_[2]} if $_[0] < 0;
  return &{$_[3]};
}

gives the functionality.  A little more research (and perhaps a quick
coversation with Damian Conway) shoud result in the desired syntax.

Ted
-- 
Ted Ashton ([EMAIL PROTECTED]), Info Sys, Southern Adventist University
          ==========================================================           
How happy the lot of the mathematician. He is judged solely by his peers,
and the standard is so high that no colleague or rival can ever win a
reputation he does not deserve.
                                       -- Auden, W. H. (1907-1973)
          ==========================================================           
         Deep thoughts to be found at http://www.southern.edu/~ashted

Reply via email to