Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] OCaml compared as a scripting language
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-06-14 (16:29)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] OCaml compared as a scripting language
Sure.  I think it's pretty cool that an application language does
relatively well as a scripting language, when it plainly wasn't
designed to do that.

I think it'd be possible to assemble a very capable scripting language
without affecting the core language at all.  "OCamlScript" would be:

* normal OCaml
+ Regexp/OCaml (a Camlp4 extension, modified to use pcre)
+ File utilities module
+ ExtLib
+ a bunch of helper functions which I've been writing (eg. slurp
  all lines of a file into memory in various ways) - some of this
  is in ExtLib.

It might also make sense to add some operators using Camlp4 for
handling files.  eg. I've always thought it's a crying shame that you
can't write to a file in Perl using 'command >filename'.  You could
actually _do_ something like that in OCaml + Camlp4, which could be a
real timesaver.

This would be an interesting project for someone ...


Richard Jones.
Merjis Ltd. - improving website return on investment
'There is a joke about American engineers and French engineers. The
American team brings a prototype to the French team. The French team's
response is: "Well, it works fine in practice; but how will it hold up
in theory?"'

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: