Version française
Home     About     Download     Resources     Contact us    
Browse thread
The need to specify 'rec' in a recursive function defintion
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: rossberg@m...
Subject: Re: [Caml-list] The need to specify 'rec' in a recursive function defintion
Jon Harrop:
> On Tuesday 09 February 2010 22:01:03 Gerd Stolpmann wrote:
>> In the ML community it is consensus that a recursive function is a total
>> different thing than a non-recursive function...
>
> Note that Standard ML does this differently to CAML/OCaml.

Not quite -- SML simply defines "fun f x = ..." to be an abbreviation for
"val rec f = fn x => ...".

/Andreas