Skip to content

ConfigReader methods that take a transform closure #22

@czechboy0

Description

@czechboy0

It might be useful to have a transform variant:

let foo = config.string(forKey: "foo", as: Foo.self, default: .bar) { rawString in
    // turn string into a Foo
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/needs-designNeeds further discussion and a concrete proposal.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions