[Larceny-users] [ikarus-users] [plt-scheme] Re: side effects in R6RS modules

David Rush kumoyuki at gmail.com
Wed May 6 07:32:34 EDT 2009


2009/5/6 Ramana Kumar <ramana.kumar at gmail.com>:
> is there a good argument for set! to return unspecified?

Because Scheme is not C. Or C++ for that matter.

In more obfuscated terms: Mixing the state monad with referentially
transparent expressions is generally a bad idea. Scheme believes
programmers are well-intentioned and allows stateful code to freely
intermingle with  pure expressions, but it doesn't encourage such
behavior.

although, FWIW, I agree that it would be handy on occasion if SET! had
those semantics.

david
-- 
GPG Public key at http://cyber-rush.org/drr/gpg-public-key.txt



More information about the Larceny-users mailing list