From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA08155; Tue, 15 Jun 2004 23:16:29 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA08901 for ; Tue, 15 Jun 2004 23:16:28 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from alex.baretta.com (host160-68.pool80116.interbusiness.it [80.116.68.160]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i5FLGREV002773 for ; Tue, 15 Jun 2004 23:16:28 +0200 Received: from baretta.com (localhost [127.0.0.1]) by alex.baretta.com (Postfix) with ESMTP id 206CA2D5ADB for ; Tue, 15 Jun 2004 17:17:10 -0400 (EDT) Message-ID: <40CF6755.7050608@baretta.com> Date: Tue, 15 Jun 2004 23:17:09 +0200 From: Alex Baretta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: it, en-us, en MIME-Version: 1.0 To: Ocaml Subject: Re: [Caml-list] OCaml compared as a scripting language References: <20040614095216.GA8184@redhat.com> <20040614162907.GA17265@redhat.com> <40CE99EE.9030105@bik-gmbh.de> <200406151613.i5FGDN7k030987@waco.inria.fr> <20040615171535.GA14773@redhat.com> <20040615173513.GB13863@complete.org> <40CF3D0C.6060805@1969.ws> <20040615192310.GB17934@complete.org> In-Reply-To: <20040615192310.GB17934@complete.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 40CF672B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; baretta:01 baretta:01 caml-list:01 2004:99 merd:01 sourceforge:01 suboptimal:01 ocaml:01 ocaml:01 0700,:01 alex:01 alex:01 wrote:03 wrote:03 readability:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk John Goerzen wrote: > On Tue, Jun 15, 2004 at 11:16:44AM -0700, Karl Zilles wrote: > >>Wow! That's 4 extra characters! > > > It was one example. Look at the grep example at > http://merd.sourceforge.net/pixel/language-study/scripting-language/#grep > for a much more significant difference. I'm not going to recode grep in Ocaml for any amount of money, but I can assure you that the implementation you mention is suboptimal length-wise. Besides, most other implementations are simply unreadable. A couple more lines of code are worth the extra readability in this case. Alex ------------------- 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