Version française
Home     About     Download     Resources     Contact us    
Browse thread
RE: [Caml-list] Please help a newbie
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dave Berry <Dave@k...>
Subject: RE: [Caml-list] Please help a newbie
For the language designers on the list:  This is an example of why
curried notation is a bad idea.  If the function were written using
tuples, Johann would have been less likely to make this mistake, and if
he had, the compiler could have given a message that was easier to
understand.


-----Original Message-----
> # let rec wys_die_lys l = function
>     [] -> []
>         | h :: t -> wys_dit h ::    wys_die_lys l t;;
> val wys_die_lys : 'a -> string list -> unit list = <fun>
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr