From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id E050DBC28 for ; Wed, 3 Nov 2004 22:36:04 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iA3La41D003709 for ; Wed, 3 Nov 2004 22:36:04 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA18730 for ; Wed, 3 Nov 2004 22:36:03 +0100 (MET) Received: from shade.msu.ru (shade.msu.ru [193.232.127.27]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iA3La3Za003706 for ; Wed, 3 Nov 2004 22:36:03 +0100 Received: from localhost (serge@localhost) by shade.msu.ru (8.11.6/8.9.3) with ESMTP id iA3LbfR19053; Thu, 4 Nov 2004 00:37:41 +0300 Date: Thu, 4 Nov 2004 00:37:41 +0300 (MSK) From: Serge To: David Brown Cc: caml-list@inria.fr Subject: Re: [Caml-list] Worsening standard library In-Reply-To: <20041103212136.GA22512@old.davidb.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at concorde with ID 41894F44.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41894F43.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 scanf:01 imho:01 polymorphic:01 strings:01 strings:01 modules:01 types:02 library:03 unlikely:04 serge:05 serge:05 moscow:05 mathematics:06 standard:07 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: > Any reason not to use 'scanf'? Complexity. I do not mind having scanf, but using it requires some understanding of modules, format strings and polymorphic types. And people are unlikely to get bothered by these as soon as they are unable to feed numbers into their simple programs. That's the catch. Reading numbers should hardly be more complicated than reading strings, IMHO. ------------------------------------------------------------------------------- Serge S. Bityukov, Moscow State University, Dept of Mechanics and Mathematics