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
practical functional programming
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-11-08 (17:14)
From: Chris Hecker <checker@d...>
Subject: Re: practical functional programming

Thanks to everybody for the great replies!

>Sharing is the key.  The beauty of immutable data structures is that
>sharing is always safe.

Ah, this makes sense.  How does the compiler "know" the datastructure is purely functional?  In other words, is there any way for me to get a type into a tree that has a mutable member (perhaps through an abstract type), and if so, what happens in that case?