Darren New wrote:
> Kevin Wampler wrote:
>> Darren New wrote:
>>> Why does order matter in argument lists, if the arguments all need
>>> distinct names anyway? :-)
>>
>> So you can call the function without explicitly naming the parameters,
>> thus reducing the amount of typing required.
>
> It was a rhetorical question to show that the argument "dictionaries are
> sets and hence have no order" is an invalid comparison.
I should have guessed that. It certainly seemed like an odd question
for you to be asking in earnest.
>> Thinking back, didn't objective-C use named parameters only for
>> calling object methods? Did the order matter there? I can't really
>> remember.
>
> Yes. Because they took it from Smalltalk.
That makes sense. One of these days I'd like to get around to learning
smalltalk.
Post a reply to this message
|