Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] why the "rec" in "let rec"?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-05-07 (14:04)
From: Garry Hodgson <garry@s...>
Subject: [Caml-list] why the "rec" in "let rec"?

something i was always curious about:  why do you need to 
specify the "rec" in a "let rec" function definition?  as opposed
to, say, having the compiler figure out when a function is recursive?

is it a compiler/grammar optimization?  or to help the user, forcing them
to be precise with recursion?  or required by the type system?

do other ML's do it this way?

just curious.

Garry Hodgson, Senior Hacker, AT&T Labs

No act is more patriotic than speaking out when your government 
is doing the wrong thing in your name.  This is not your right
but your sacred duty.  And none are more treasonous than those
who would silence these voices.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: