You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be shape_id: Option<ShapeId> in struct Shape because:
Scalar types and opaque types should have a manually picked ShapeId (that does not clash with other ShapeIds)
Recursive types cannot have a ShapeId, because we cannot have cyclical associated consts — as soon as there's a pointer, which would allow recursing (including smart pointers etc.) then we have None and that's too bad, but we can still use type_id at runtime.
However, generic types can have a shape ID: we can do fnv1a in const, so we can "mix" the T, K, V, whatever's shape IDs with the container's
This would allow matching against certain types in const contexts, which as close to #98 as we can get for now.
The text was updated successfully, but these errors were encountered:
Should be
shape_id: Option<ShapeId>
instruct Shape
because:None
and that's too bad, but we can still use type_id at runtime.This would allow matching against certain types in const contexts, which as close to #98 as we can get for now.
The text was updated successfully, but these errors were encountered: