caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: John Goerzen <jgoerzen@complete.org>
To: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] OCaml compared as a scripting language
Date: Tue, 15 Jun 2004 12:35:13 -0500	[thread overview]
Message-ID: <20040615173513.GB13863@complete.org> (raw)
In-Reply-To: <20040615171535.GA14773@redhat.com>

On Tue, Jun 15, 2004 at 06:15:35PM +0100, Richard Jones wrote:
> On Tue, Jun 15, 2004 at 06:13:23PM +0200, Bruno.Verlyck@inria.fr wrote:
> > Anyway, all those language comparisons are always biased; is `program
> > length' a good measure of scripting capacity ?  It turns the
> > comparison into a shortest script challenge, doesn't it ?
> 
> Actually it's not a bad measure.  One of the reasons I prefer Perl
> over Java, and OCaml over Perl, is verbosity.  On a scale of length of
> programs:
> 
> OCaml < Perl <<<<<<< Java
> 
> In fact I don't think I've ever seen anything as horribly verbose (and
> useless) as Java.  COBOL perhaps?

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;

or

output_string fd ((string_of_int theint) ^ "\n");

Python:
print theint

Perl:
print FD "$theint\n";

-------------------
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


  reply	other threads:[~2004-06-15 17:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-14  9:52 Richard Jones
2004-06-14 15:55 ` Brian Hurt
2004-06-14 16:29   ` Richard Jones
2004-06-15  6:40     ` Florian Hars
2004-06-15 16:13       ` Bruno.Verlyck
2004-06-15 17:15         ` Richard Jones
2004-06-15 17:35           ` John Goerzen [this message]
2004-06-15 18:16             ` Karl Zilles
2004-06-15 19:23               ` John Goerzen
2004-06-15 21:17                 ` Alex Baretta
2004-06-16  2:12             ` skaller
2004-06-15 17:41           ` Jon Harrop
2004-06-15 17:42           ` William D. Neumann
2004-06-15 18:27 Hellflame
2004-06-15 20:07 ` Brian Hurt
2004-06-16  2:26   ` skaller
2004-06-16 11:00   ` sejourne kevin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040615173513.GB13863@complete.org \
    --to=jgoerzen@complete.org \
    --cc=caml-list@inria.fr \
    --cc=rich@annexia.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).