[Prev][Next][Index][Thread]

Re: small Q




oodl@my-deja.com wrote in message <8mmvgo$enu$1@nnrp1.deja.com>...
>In article <Gsyj5.3194$pu4.263441@typhoon.ne.mediaone.net>,
>  "Scott McKay" <swm@mediaone.net> wrote:
>>  Multiple return values
>> is one of those things that, once you use them, you can't imagine why
>> all languages don't have them.
>
>Yes, imagine if functions in programming languages could only *take* one
>parameter.  That would be lame.  Being able to return only one value
>from a function is no different:  It forces one to resort to structures,
>collections, or global variables.... all of which have a negative
>influence on organization and/or clarity of ones source code.


FWIW, I think that ML, e.g., only allows you to pass a single
parameter.  Passing multiple parameters is syntactic sugar
for a currying sort of operation.

My memory could be wrong...





Follow-Ups: References: