Browse thread
[Caml-list] OCaml compared as a scripting language
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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 ... Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - 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 caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners