Writing more efficient code

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Mon Jan 1 22:33:49 CET 2007

Jon Harrop:
> OCaml's pattern matcher is very sophisticated and very fast. You'll probably
> shrink your code by several fold whilst also having it run a few orders of
> magnitude faster and having it statically checked, so it will be more
> reliable.

You seem to forget some months of time to learn OCaml.
And my Python programs seem reliable enough despite being unstatically
checked :-)

> You might want to look at any language with pattern matching: OCaml, SML,
> Haskell, F#, Mathematica etc.

Mathematica pattern matching is good, but Mathematica costs a lot of
money (and you need some time to learn it, it's not an easy system).


More information about the Python-list mailing list