Skip to content

haslens analog tohasfield #145

Open
Open
@goretkin

Description

@goretkin

I didn't see an existing way to check whether get(obj, l) would return a value or throw any or all of

ERROR: type $obj has no field $f
BoundsError
ArgumentError: invalid index: $i

etc.

It could be nice to have a function or two for this. Possibly two so that one can do all the "static" checks---no bounds checking on AbstractArrays with non-inferrable size, or keys in Dicts)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions