Skip to content

Support mixed units #364

Closed
Closed
@bsidhom

Description

@bsidhom

It would be great if Numbat supported unit lists out of the box à la Gnu Units. This allows units to be displayed in an effectively arbitrary "base" consisting of other units.

I understand that this may be tricky or conceptually incompatible with unit typing, but maybe it could make sense to have some short-hand to define unit list functions that convert to String. I'm thinking of something similar to the human() time function, which currently does this manually in a pretty janky way. (Perhaps the real issue is that custom functions don't have the greatest ergonomics; I'll start a discussion expanding on that.)

Could be nice to have proper support for unit lists as typed entities, though I haven't put much thought into whether that makes sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions