Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

fields.get returning an option for not found #82

@guybedford

Description

@guybedford

Currently fields.get returns an empty list for a header that has no entry.

It might be useful to explicitly make this an option?

Alternatively, a fields.has might be useful for these kinds of checks as well.

A length check on a list for existence just feels a bit unintuitive even though it's semantically correct.

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