Re:Java Was Strongly Influenced by Objective-C
by dilap on Thursday June 25, 2015 @08:50AM
(#9777471)
One 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.
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!