3 ms·
What commas are you talking about?
by saagarjha 8y ago
What commas are you talking about?
- protomyth 8y agosomePoint.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]
- batteryhorse 8y agoThe ones in between the arguments. The beauty of sending a message to an object has been replaced with a function call with a horrible syntax. I guess that's what makes Swift a modern language.