Skip to content

Kiloyards Length UnitOfMeasure Support #298

Description

@ALPSMAC

As odd of a unit of measure as it is, my office actually has need of Kiloyards as a unit of measure quite regularly. I imagine this is just as simple as adding it into the existing units of measure defined for squants.space.Length, correct?

Or for strange units of measure like this one would we prefer to keep them defined as a ratio instead of directly inside Length?

More generally - is there a defined way to add additional UnitsOfMeasure over an existing abstract type (i.e. Length) without having to directly manipulate the library itself? It would be nice to have the ability to extend Squants with custom UnitsOfMeasure and it looks like perhaps there's been some work in that direction but I'm not sure what the guidance is there in general.

Reference:
https://www.convertunits.com/info/kiloyard
https://www.convertunits.com/info/kilofoot

See PR #297

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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