[plt-scheme] imperative vs functional

From: jeeve (jvjulien at free.fr)
Date: Tue Nov 4 13:47:12 EST 2008

I made a little program with DrScheme and world.ss teachpack

my goal is to try to use the functional programming concept mixin
object oriented programming
I 'm french beginner in Scheme...

source code (imperative OO) is here :

and the equivalent (functional / imperative OO) code test is here :

the second version obliges methods to create a new object instance at
each call. so it's necessary to initialize each fields of this new
object... if it's a complex class, that does not seem very

exist there a method to reconcile the two approaches (OO and
functional) ?

Posted on the users mailing list.