4 ms·
Yes more so than Smalltalk. While both have unary and keyword messages, the messages in the Cocoa APIs are generally much more verbose than their Smalltalk anal
by dfg2 16y ago
Yes more so than Smalltalk. While both have unary and keyword messages, the messages in the Cocoa APIs are generally much more verbose than their Smalltalk analogues. Compare insertObject:atIndex: from NSMutableArray with at:put: from Smalltalk's Array, OrderedCollection, and Dictionary.
Also, Smalltalk has binary messages (with which arithmetic is implemented), which allows for the creation of useful shortcuts like "," for collection concatenation and "@" for point creation. Smalltalk has precedence levels associated with its message syntax; Objective-C doesn't, hence [the [bracket soup]]. Smalltalk also has an extremely concise block closure syntax and no need for header and object files or special function/class declaration syntax.