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: -- (:)
From: Karl Zilles <zilles@1...>
Subject: Re: [Caml-list] OCaml compared as a scripting language
John Goerzen wrote:
> My experience has been that OCaml is a lot more verbose than Perl.  For
> instance, to output an integer to a file, I'd have to do:
> fprintf fd "%d\n" theint;


> print FD "$theint\n";

Wow!  That's 4 extra characters!

I've ported several thousand-line perl scripts to OCaml.  My experience 
is that the resulting scripts are about the same size as the original 
scripts.  They're just infinitely easier to maintain.

There is a lot of syntactic sugar in perl (especially for i/o) that 
makes simple programs very small.  As the program grows more complex, 
the benefits are fewer.

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