caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: John Goerzen <jgoerzen@complete.org>
Cc: Richard Jones <rich@annexia.org>, caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] OCaml compared as a scripting language
Date: 16 Jun 2004 12:12:28 +1000	[thread overview]
Message-ID: <1087351947.16811.1375.camel@pelican.wigram> (raw)
In-Reply-To: <20040615173513.GB13863@complete.org>

On Wed, 2004-06-16 at 03:35, John Goerzen wrote:

> fprintf fd "%d\n" theint;
> 
> or
> 
> output_string fd ((string_of_int theint) ^ "\n");
> 
> Python:
> print theint
> 
> Perl:
> print FD "$theint\n";

This is not a fair comparison though: if you need to do lots of
output, which I do in the Felix code generator, you define
abbreviations.

pl (si theint);

which is shorter than the Perl.

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net



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


  parent reply	other threads:[~2004-06-16  2:48 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
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 [this message]
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=1087351947.16811.1375.camel@pelican.wigram \
    --to=skaller@users.sourceforge.net \
    --cc=caml-list@inria.fr \
    --cc=jgoerzen@complete.org \
    --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).