3 ms·
Objective-C dot syntax is fucktarded. The dot is a structure-member indicator; why are you using it on a value of pointer type? The thing is, Smalltalk has a p
by bitwize 14y ago
Objective-C dot syntax is fucktarded. The dot is a structure-member indicator; why are you using it on a value of pointer type?
The thing is, Smalltalk has a perfectly good getter/setter convention that's almost as compact and straightforward: for a property called 'foo' the getter is called 'foo' and the setter is called 'foo:' (takes one arg). Apple could have used this convention in its method synthesizer (they opted to make the setter the somewhat more awkward 'setFoo:') and everybody would be clear on what was a struct member access and what was a message sent to an object. But no.