merits of Lisp vs Python

Paul Rubin http
Sun Dec 10 04:27:45 EST 2006


Jon Harrop <jon at ffconsultancy.com> writes:
> # cond 2
>     [( = ) 1, "one";
>      ( = ) 2, "two";
>      ( = ) 3, "three"]
>     "neither one, two nor three";;
> - : string = "two"

I'm missing something.  Doesn't Ocaml have strict evaluation?  That
means if you use function calls instead of string constants in those
values, they all get called.  You haven't really done what cond does.



More information about the Python-list mailing list