Better primitive type checking
hediyi opened this issue · comments
hediyi commented
Maybe better to check typeof identity
instead of muType
, coz we don't have control over the type name of user-defined schema types
hediyi commented
take the example of the QuantizedScalar
Mikola Lysenko commented
No, the typeof identity is ambiguous. We should use mutype for this stuff.
hediyi commented
i'm thinking something like type === 'number' || type === 'string' || type === 'boolean'
, how is this ambiguous?
Mikola Lysenko commented
In what context would the typeof syntax get checked?
If you are serializing an 8 bit vs 32 bit vs var int you'd use a different technique.
hediyi commented
I see your point now. closing