Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
stochastic_monk
on Sept 23, 2019
|
parent
|
context
|
favorite
| on:
Small but significant improvements in Swift 5.1
Meaning that the underscore allows them to be used as positional arguments instead of being only accessed by "keywords", to use a python analogy?
emp
on Sept 23, 2019
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: