3 ms·
How is swift a javascript clone? They ditched the selector syntax and went to a Javascript / C++ like syntax. There were so many ways to keep the selector syn
by protomyth 7y ago
How is swift a javascript clone?
They ditched the selector syntax and went to a Javascript / C++ like syntax. There were so many ways to keep the selector syntax, but they went conformist.
Objective c is insanely verbose.
well, no - Swift's call syntax actually results in the same or more characters:
somePoint.moveBy(x: 2.0, y: 3.0)
[somePoint moveByX: 2.0 y: 3.0];
somePoint.moveBy(x: 2.0, y: 3.0, z: 4.0)
[somePoint moveByX: 2.0 y: 3.0 z: 4.0];
Swift benefited from some shortening of the method names that can be equally applied to Objective-C. Plus, why the whole split by a left parentheses and comma thing?