Why must the last part of an Objective-C method name take an argument (when there is more than one part)?

This is Brad Cox. My original answer misunderstood the question. I assumed reallyFast was a hardcoded extension to trigger faster messaging, not a kind of syntactic sugar. The real answer is that Smalltalk didn’t support it, perhaps because its parser couldn’t deal with the (assumed) ambiguity. Although OC’s square brackets would remove any ambiguity, I simply didn’t think of departing from Smalltalk’s keyword structure.

Leave a Comment