See Why did the default datatype layout change to @layout comb
?
for background about this change.
How to deal with the change of the default datatype layout to @layout comb ?
·5 min read·
·5 min read·
See Why did the default datatype layout change to @layout comb
?
for background about this change.
·2 min read·
When compiling to Michelson, LIGO must choose a "layout" for record
and variant data types. Unfortunately, Michelson only has binary
pair
/or
types, for esoteric theoretical reasons.
This means that for each record or variant type, LIGO must pick one of the many isomorphic binary tree structures which can represent it in Michelson. This choice needs to be consistent (else we will get type errors) and ideally it should be flexible (so that users can interoperate with Michelson types defined in standards or emitted by other compilers.)