scheme-bytestructures icon indicating copy to clipboard operation
scheme-bytestructures copied to clipboard

Bytestructure descriptors need equality

Open johnwcowan opened this issue 8 years ago • 1 comments

Currently, you can ask what the bytestructure descriptor of a bytestructure is, but there is no way to check if it is the same as (bs:vector 3 uint16). There needs to be an equality function that will establish this.

johnwcowan avatar Apr 19 '16 17:04 johnwcowan

Difficult. I would urge users to just use singletons for the time being, though I hope I'll come up with a good solution in the future. Recent changes already added a "metadata" field to the descriptor record type; it was added in a rather ad-hoc way with no clear specification of what it should include; I might flesh this out in the future, or change it to be a number of different metadata fields, to allow better introspection, which would allow to check equality among more.

TaylanUB avatar May 31 '16 21:05 TaylanUB