On Tue, May 22, 2007 at 11:38:40AM +0300, dmitry grebeniuk wrote:
> But hadn't you wrote syntax extensions to ocaml? They turn
> ocaml into some other language, which should be learned too.
Yes, but hopefully they only extend the language, rather than changing
it fundamentally. The only significant extension I've written is
PG'OCaml, which just adds a single operator to the language. The
average programmer wouldn't even understand why the "PGSQL" operator
isn't a normal function -- it would look the same to him.
A more invasive change is micmatch, but even there the main
modification is just the addition of a single operator ("RE").
(Well, there are a couple of others, but that's the main one).
Unless you're going to argue that libraries are a bad thing, because
they also change the language ...
Rich.
--
Richard Jones
Red Hat
.