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
How important are circular lists/recursive objects?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-04-03 (07:00)
From: Andrej Bauer <Andrej.Bauer@f...>
Subject: Re: [Caml-list] How important are circular lists/recursive objects?
Brian Hurt wrote:
> Does anyone  actually use this construct, and if so, for what?

When I teach my students "theory" of programming languages, we write 
interpreters for mini languages. The recursive data structures are used 
to create closures of recursive functions, environments that contain 
mutually recursive values, closures of objects, etc. Life would be very 
hard without this feature.