News for hackers. Stuff that matters.
Re:Small but significant improvements in Swift 5.1 by stochastic_monk on Sunday September 22, 2019 @08:20PM (#21044950)
Meaning that the underscore allows them to be used as positional arguments instead of being only accessed by "keywords", to use a python analogy?
Re:Small but significant improvements in Swift 5.1 by emp on Monday September 23, 2019 @03:00AM (#21046545)
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.