roxen.lists.pike.general

Subject Author Date
Re: Pike & Python Dave Walton <dw-pike[at]digger[dot]net> 11-12-2008
Martin Stjernholm wrote:
> Dave Walton <<dw-pike[at]digger.net>> wrote:
> 
>> if (0 < x < 10):	handy.  kinda wish PHP and Pike could do that.
> 
> Pike can, but you have to call the < operator as a function, i.e.
> using the backtick name:
> 
>   if (`< (0, x, 10)) ...
> 
> Looks a bit uglier, tho.
> 

Oh, cool.  Not nearly as intuitive for the casual reader, though.
That brings up something I've been wondering...  Why is it that all the
operators are also functions?  I'm curious what inspired that design.

Dave