Skip to content

Abstract Microfloat type #12

@AntonOresten

Description

@AntonOresten

Microfloat is currently a primitive type with a trait-ish variant type parameter for defining different behaviors. An alternative is making abstract type Microfloat{S,E,M} <: AbstractFloat end , and requiring primitive subtypes like to implement the methods instead, i.e. primitive type MXFloat{S,E,M} <: Microfloat{S,E,M} 8 end. This is a little more Julian, but primitive types don't feel as user friendly, and I think it's cool to be able to subtype other variants in the type parameter version... not that it's really needed, and defining something like the MX types are just a few dozen lines anyway.

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