Linked by Jared White on Thu 24th Apr 2003 17:49 UTC
General Development There are two major varieties of Cocoa available. The first variety, possibly the more well known of the two, is the kind that you can use to make a nice warm cup of chocolate milk. While tasty, it's hardly proper subject matter for an operating systems information site. The second variety is far more on-topic: a programming environment for Apple Mac OS X that is the modern evolution of of the original NeXTSTEP frameworks. That's what I'm here to talk about today.
Permalink for comment
To read all comments associated with this story, please click here.
Re: Named arguments
by Antartica on Fri 25th Apr 2003 08:53 UTC

@Eric Wang:

"I wish more languages provided named arguments. The only ones I know of are Smalltalk and Objective-C. Any others out there?"

Python offers *optional* named arguments. That is, you can use either positional arguments or named arguments.

They're very useful for PyGtk, as most of the arguments have default values, using named arguments provides you with a way to specify only the properties you want to be different.

But in any way it's used to improve readability, it's just to improve efficiency of coding ;-).