Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Manos Renieris <er@cs.brown.edu>
To: Serge <serge@shade.msu.ru>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Worsening standard library
Date: Wed, 3 Nov 2004 17:31:51 -0500	[thread overview]
Message-ID: <20041103223150.GC29579@cs.brown.edu> (raw)
In-Reply-To: <Pine.LNX.4.10.10411032359200.17861-100000@shade.msu.ru>

read_int
read_line
read_float 

are all in Pervasives.

-- Manos

On Thu, Nov 04, 2004 at 12:11:08AM +0300, Serge wrote:
> 
> Gentlemen!
> 
> I think this might be kinda offtopic, but nevertheless. OCaml is being
> extensively employed for educational purposes, and it looks like it is
> still missing an important feature - the one of easy reading numbers
> (integers/floats/doubles) from, say, standard input. You have to read
> lines and parse numbers out of them. For instance, in Pascal it was
> possible to do "read(x)". 
> 
> Absence of such feature distracts people from trying to program sensible
> things in OCaml. It would be nice to have such functionality in the
> standard library.
> 
> I do not wish to start a rant like "let us include simplex method in the
> std since it is gravely important" etc., but I do think that _ability to
> read numbers from stdin in a standard way_ is very important for the
> language like OCaml - because students want it very much, and it is not
> ugly in any way.
> 
> -------------------------------------------------------------------------------
>  Serge S. Bityukov, Moscow State University, Dept of Mechanics and Mathematics
> 
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


  parent reply	other threads:[~2004-11-03 22:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-03 21:11 Serge
2004-11-03 21:21 ` [Caml-list] " David Brown
2004-11-03 21:37   ` Serge
2004-11-03 22:31 ` Manos Renieris [this message]
2004-11-03 23:22 ` 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=20041103223150.GC29579@cs.brown.edu \
    --to=er@cs.brown.edu \
    --cc=caml-list@inria.fr \
    --cc=serge@shade.msu.ru \
    /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