Functional Squeak

Stefan Matthias Aust sma at 3plus4.de
Sat Jun 3 16:01:24 UTC 2000


Hi!

At 14:00 02.06.00 -0400, Brian Sutton wrote:
>Hi all!
>
>Has anyone tried to write Smalltalk code in a very "functional" style
>(eliminating state changes as much as possible)?  What were your
>impressions?

Doing OOP means combining state (data, variables) and behavior 
(function).  Functional programming for means removing - or at least hiding 
- state from objects which is IMHO a step back.

>Would immutable collections be a valuable addition to Squeak?

Sure.  Especially literal strings and arrays should be immutable 
IMHO.  This could be a very useful general concept.  Actually, it might be 
a nice idea to be able to declare any slot of an object as readonly.

>How about
>an even larger subset of the class library for Functional Squeaking?

Not sure.  See above.


bye
--
Stefan Matthias Aust \\ Truth Until Paradox





More information about the Squeak-dev mailing list