D/Objective-C Preliminary Design
Anders F Björklund
afb at algonet.se
Thu Nov 4 01:14:41 PDT 2010
Michel Fortin wrote:
> But the issue isn't the underscore, it's the verbosity of Objective-C
> method names. Method names in Objective-C tend to be long and
> expressive, they are meant to have the arguments interleaved between
> each part of the selector. This interleaving makes Objective-C code very
> natural to read. Remove that and you've got something that doesn't read
> well and on top of that looks out of place in a D program.
The JavaBridge had lots of those functions, while it was alive:
http://developer.apple.com/legacy/mac/library/documentation/Cocoa/Conceptual/Legacy/JavaBridge/JavaBridge.pdf
-(void)setObject:(id)anObject forKey:(id)aKey;
void setObjectForKey(Object anObject, Object aKey);
--anders
More information about the Digitalmars-d
mailing list