Re: [Pyobjc-dev] Possibly dumb question
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-11-12 21:24:24
|
It eliminates an ambiguity for methods that take no arguments vs. one argument. I.e. there is a difference between this... foo.doSomething() ... and this ... foo.doSomething( bar ) The first is the method 'doSomething', the second should be 'doSomething:'. While we could have the bridge count the args and silently fix the second case, such actions generally lead to ambiguity and confusion -- and, potentially, maintenance nightmares. In any case, that final '_' is useful in that it gives immediate indication that "Hey, I'm writing this method or call that method very much in light of the presence of Objective-C". b.bum On Tuesday, November 12, 2002, at 04:10 PM, Just van Rossum wrote: > Do the trailing underscores in (Py)Obj-C method names have a purpose? > I don't > (yet) see why this (for example) > > [path setLineDash:dash count:4 phase:20.0] > > should translate to > > path.setLineDash_count_phase_(dash, 4, 20.0) > > instead of > > path.setLineDash_count_phase(dash, 4, 20.0) > > Just > > > ------------------------------------------------------- > This sf.net email is sponsored by: > To learn the basics of securing your web site with SSL, > click here to get a FREE TRIAL of a Thawte Server Certificate: > http://www.gothawte.com/rd522.html > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > b.bum Are you laughing? ... they are. |