If anything, the old syntax was pure and consistent with what actually happens - message sending. Dot notation muddies the waters, IMO, but certainly is convenient. Ditto the collection literals.
#include <Foundation/Foundation.h>
@interface Foo : NSObject
@property (copy) NSString *bar;
@end
@implementation Foo
@end
int main(int argc, char *argv[]) {
Foo *foo = [Foo new];
[foo setBar:@"Hello, world!"];
NSLog(@"%@", [foo bar]);
return 0;
}Objective-C was grafted onto C with very clear demarcation lines.
We don’t mind being able to declare a property with `@property`. We do mind that they introduced dot syntax
t rotate (a, v); // Who needs dot?
t rotate a, v; // Who needs brackets?
t rotate by: a around: v; // Who needs ambiguity?
t rotateBy: a around: v // This is Smalltalk
Civilization has used dot notation in basically all thought, as evidenced by pretty much any nation’s laws / code
On Smalltalk: Objective-C of course aspires to be Smalltalk. It just so happens that it's happy to be a muggle and integrate C as well. Good for us. Use Smalltalk for most things and C where necessary.