Skip to content

Deprecate has(map.key) -> bool #494

@hudlow

Description

@hudlow

has() is strange with respect to maps. It only works with string keys that are identifiers in the lexicon, and it suppresses what would otherwise be errors. (I could be wrong, but it doesn't seem like has(message.field) -> bool actually suppresses an error that its naked expression would result in.)

Plus, we already have key in map which seems much more idiomatic, eliminates error suppression of a subexpression, and can be used with any key value.

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