Multiple Returns, was Re: Common Lisp style macros in Smalltalk?

Chris Reuter cgreuter at calum.csclub.uwaterloo.ca
Wed Jan 19 03:44:13 UTC 2000


On Tue, Jan 11, 2000 at 07:25:59PM -0500, agree at carltonfields.com
wrote:
[...]  
> The "strict" Smalltalkologist might observe (and it has been
> observed many times in these letters), that the proper
> methodological solution is that every such aggregating should have
> its own aggregating class.  Thus:
> 
> 	^ Foo with: expresion1 with: expression2 with: expression3.

I would think that creating a new class just to return multiple
objects is overkill unless the class is also needed to do something
more.  What's the rationale for doing this rather than just returning
an array?



				--Chris





More information about the Squeak-dev mailing list