Heard the argument before :)

Too often Foo ends up being called 'Result' because there's actually no
concept that the multiple returned list returns.

OO involves designing with classes that map to domain concepts. When the
domain concept uses the Java language as a domain and the concept is
JavaHasNoMultipleReturnObject, then it's not good OO :)

In reality you end up returning an array, which is fine except it is
untyped and only handles Objects. I'd like it to handle priomitives too
and be typed.

Just a view :)

Hen


On Thu, 7 Mar 2002, Colin Sharples wrote:

>
> > I would like to see the ability to return multiple objects. Not sure if
> > this would be easy to do as it would require the preprocessor to work
> > across files, but I would like to do:
> >
> > int i;
> > String str;
> >
> > (i, str) = runCode();
>
> public class Foo {
>   private property int i;
>   private property String str;
> }
>
> Foo foo = runCode();
>
> It's called OO... :-)
>
> Regards
>
> Colin M Sharples
> I/T Architect
> IBM Global Services New Zealand
>
> email: [EMAIL PROTECTED]
> phone: 64-4-5769853
> mobile: 64-21-402085
> fax: 64-4-5765616
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to