merits of Lisp vs Python

William James w_a_x_man at yahoo.com
Fri Dec 15 15:51:11 EST 2006


André Thieme wrote:
> William James schrieb:
>
> > def nif num, pos, zero, neg
> >   send( num>0 ? pos : (num==0 ? zero : neg) )
> > end
>
> btw, your nif body is built out of 13 tokens, so more
> complicated than the Python version.
>
> 
> André
> --

def nif num, *args
  send args[ 1 + (0 <=> num) ]
end




More information about the Python-list mailing list