Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
stochastic_monk
· 7y ago · 0 comments
Meaning that the underscore allows them to be used as positional arguments instead of being only accessed by "keywords", to use a python analogy?
Comments
[–]
emp
7y ago
They are still positional in Swift. color(r: 255, g: 255, b: 255) is not the same as color(b: 255, g: 255, r: 255). Also the parameter names are part of the method signature.