|
|
|
|
|
by hlidotbe
5158 days ago
|
|
I may have missed something but API calls looks like a regular Ruby call with a hash and since all [] are dropped it's systematically shorter (not even counting the fact that you don't have .h/.m, declaration/implementation, it's not just a matter of API calls). i.e. [obj method: param second: param2]; vs obj.method(param, second: param2) which is exactly two characters shorter in ruby. And what would be the point of having something that looks like Objective-C? |
|
Because the name of the function is not colorWithRed(), it is colorWithRed:blue:green:alpha:.