4 ms·
somePoint.moveBy(x: 2.0, y: 3.0) as opposed to [somePoint moveByX: 2.0 y: 3.0]; most Objective-C code would get rid of the space too [somePoint moveByX:
by protomyth 8y ago
somePoint.moveBy(x: 2.0, y: 3.0)
as opposed to
[somePoint moveByX: 2.0 y: 3.0];
most Objective-C code would get rid of the space too
[somePoint moveByX:2.0 y:3.0];
Its just painful to type extra characters that don't do anything and don't help readability. Plus the weird splitting of the moveByX is still odd.
I still am mystified why they didn't just start with:
somePoint.(moveByX: 2.0 y: 3.0)
to keep it inline with Objective-C and start working on giving the method names an overhaul that would benefit everyone including the Objective-C programmers.
- deleted 8y ago[deleted]