[Pre-RFC] named arguments

I haven’t seen patterns mentioned in the thread. Function parameters are actually patterns, not plain identifiers and patterns can’t generally serve as names for named parameters. Does functions with named parameters lose the ability to destructure their arguments in place? Can the Swift’s idea with external and internal names be somehow extended to support patterns in functions with named parameters.

P.S. In general I feel skeptical about the whole idea of named parameters, at least until we get default parameters. P.S.2 Alternatives with unnamed structs look plain horrible.

1 Like