Version française
Home     About     Download     Resources     Contact us    
Browse thread
If OCaml were a car
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] If OCaml were a car
Zitat von Nathaniel Gray <n8gray@gmail.com>:

> On 8/21/07, Luca de Alfaro <luca@dealfaro.org> 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