Skip to content

Rename read_unchecked methods #4517

@mcmah309

Description

@mcmah309

read_unchecked (e.g) is poorly named. Whenever I use it I feel like I am doing something unsafe like with the unchecked functions in the std lib. There really is nothing unchecked here - the lifetime is not unchecked, it is extended. A better name would be e.g. read_static or read_runtime_checked or read_extended since it gives the read Ref a static lifetime and relies on runtime checking instead.

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