Skip to content

(Most) keywords allowed as external parameter names #397

@marcinwyszynski

Description

@marcinwyszynski

Apple has spoken:

Keywords other than inout, var, and let can be used as external parameter names
in a function declaration or function call without being escaped with backticks.

I'm sure you are more than capable of fixing it but if you need a hint please give me a shout. Make sure that calling these is supported as well.

Test case:

extension SystemError {
    public static func description(for errorNumber: Int32) -> String {
        return String(cString: strerror(errorNumber))
    }
}

extension SystemError: CustomStringConvertible {
    public var description: String {
        return SystemError.description(for: errorNumber)
    }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions