From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 8D9FCBC69 for ; Sat, 25 Aug 2007 21:45:19 +0200 (CEST) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l7PJjIUl005263 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 25 Aug 2007 21:45:19 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from einhorn.in-berlin.de (localhost [127.0.0.1]) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id l7PJjITn021415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 25 Aug 2007 21:45:18 +0200 Received: (from www-data@localhost) by einhorn.in-berlin.de (8.13.6/8.13.6/Submit) id l7PJjI7P021413 for caml-list@inria.fr; Sat, 25 Aug 2007 21:45:18 +0200 X-Authentication-Warning: einhorn.in-berlin.de: www-data set sender to oliver@first.in-berlin.de using -f Received: from dslb-088-074-004-086.pools.arcor-ip.net (dslb-088-074-004-086.pools.arcor-ip.net [88.74.4.86]) by webmail.in-berlin.de (IMP) with HTTP for ; Sat, 25 Aug 2007 21:45:17 +0200 Message-ID: <1188071117.46d086cde3fc5@webmail.in-berlin.de> Date: Sat, 25 Aug 2007 21:45:17 +0200 From: Oliver Bandel To: Caml-list List Subject: Re: [Caml-list] If OCaml were a car References: <20070818192157.GA11789@furbychan.cocan.org> <6806cf750708181324l724823c6w304f9088980c3316@mail.gmail.com> <46C76557.5050308@cs.caltech.edu> <56864F61-40F3-4F03-9823-6D510AD5320B@epfl.ch> <20070819215924.6234b446.mle+ocaml@mega-nerd.com> <28fa90930708212250w15ce8fdai7fa615414d0279d@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-Miltered: at concorde with ID 46D086CE.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bandel:01 in-berlin:01 ocaml:01 ocaml:01 iter:01 iter:01 wrote:01 oliver:01 oliver:01 caml-list:01 let:03 luca:04 luca:04 puzzled:04 somewhat:05 Zitat von Nathaniel Gray : > On 8/21/07, Luca de Alfaro wrote: > > The only thing about Ocaml I mind, is that it a bit like German is, in that > > all the verbs at the end come. And there nothing wrong is, but it for some > > strange reading makes, and it strange is that this from France comes. > > > > I still somewhat puzzled am, at reading: > > > > let f x = > > [humonguous definition 50 lines spanning] > > in List.iter f l > > > > because the only way I make sense of this can, is by first looking at where > > f used is, and only then reading its definition. > > I much rather write would: > > > > do List.iter f l > > where f x = [humonguous definition] > > Given the prevalence of List.fold and friends, I think this (the order > of arguments) is the biggest obstacle to code comprehension in OCaml. [...] I think that is the joke with wrong sided controls of the car?! ;-) Ciao, Oliver