3 ms·
The naming of parameters in method calls was something I found a bit weird and overly verbose when I first used ObjC. But I've come to appreciate that it can g
by Reason077 11y ago
The naming of parameters in method calls was something I found a bit weird and overly verbose when I first used ObjC.
But I've come to appreciate that it can greatly improve readability when trawling through unfamiliar code bases, and thankfully it's a feature Apple have carried across to Swift.
Now days I often wish Java had external parameter names, too!
- dilap 11y agoOne of my fave obj-c features (which comes from smalltalk, I am told), and I'm surprised more languages don't do it. Aids code readability immensely, and basically eliminates an entire class of bug (of accidentally transposing two params of the same type). Most people tend to react to it really negatively at first encounter though.