Skip to content

RFC Add is_not_empty methods to vectors (or is_not_* generally) #6243

Closed
@brson

Description

@brson

We used to have this method but it was removed in favor of !. I still much prefer to write is_not_foo because it reads (and writes) so much better than the prefix bang (no backtracking to figure out what was negated), and checking for non-empty vectors is quite common. Similarly I use is_not_null very frequently.

Is this a pattern we collectively approve of or not?

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