> 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.
ok, never mind. I got the impression that this was a built-in function, ie:
if3 goes along with <=> the same that ()? : goes along with if() else.
I have no problem if it follows from prototypes. Maybe we could implement '??'
along the same lines. ;-)
Ed