Skip to content

dict should have a mustGet function #6

@ghostsquad

Description

@ghostsquad

mustGet would allow me to safely rely on a key existing and produce an error instead of requiring more complex logic to check if the return value is an empty string or not.

additionally, an empty string may be a valid value, and thus, it would be hard to differentiate without combining get with hasKey

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions