Version française
Home     About     Download     Resources     Contact us    
Browse thread
Worsening standard library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Serge <serge@s...>
Subject: Worsening standard library

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