|
|
|
|
|
by mpweiher
2074 days ago
|
|
> Have you worked with Swift at all? Yes, regretfully. >> Keywords? Or parens? Both! > Why should they be mutually exclusive? Because of parsimony. The comment I was replying to made the claim that the original Swift design war parsimonious. It wasn't. > Swift's named parameters are great! Named parameters are great. Swift's implementation of named parameters is deficient, and not parsimonious. Yes, even that design is better than not having named parameters, but once you have named parameters, you don't need the parens. |
|
Can you share an example of what this would look like in practice? I'm having trouble thinking of how this syntax would work.