6 ms·
Coming back to Java after learning Objective-C made realize how named parameters are awesome
by josemando 14y ago
Coming back to Java after learning Objective-C made realize how named parameters are awesome
- SeanLuke 14y agoObjective-C doesn't have named parameters (that is, Lisp-like "keyword" parameters). It has a hack which allows a method to be so named that it has to be used in a named way. Named parameters can be in any order and may or may not exist in the function call. Obj-C can't do this because its "names" are actually just part of the method signature. It's fake.
- sbmassey 14y agoIt may be "fake", but it still has the property that this article was looking for, in that it is obvious to the reader what each of the arguments being passed to the method are for.