Yet another game plan, this one expanding off of #6, the custom primitive types should allow for value type assertions. Essentially, I want to allow the Byte, Short, Int, and Float base classes to accept value assertions. Relating to that part, I want to add a shortcut to allow for better boolean descriptions, since there's not a boolean tag, only a ByteTag. It would essentially be a type shortcut that goes from ByteTag<0 | 1> | boolean to BooleanTag. It would then allow you to specify if a tag is just a plain ByteTag, a "boolean" one, or what it's possible values are.
Here's an example (not tested, not sure if this will work as I think it does, yet)
Yet another game plan, this one expanding off of #6, the custom primitive types should allow for value type assertions. Essentially, I want to allow the
Byte
,Short
,Int
, andFloat
base classes to accept value assertions. Relating to that part, I want to add a shortcut to allow for better boolean descriptions, since there's not a boolean tag, only aByteTag
. It would essentially be a type shortcut that goes fromByteTag<0 | 1> | boolean
toBooleanTag
. It would then allow you to specify if a tag is just a plainByteTag
, a "boolean" one, or what it's possible values are. Here's an example (not tested, not sure if this will work as I think it does, yet)*edit: Thanks wiki!