Re:Against SQL
by paavohtl on Saturday July 10, 2021 @10:30AM
(#27793557)
Well, sum types are not magic - they must be stored in the memory somehow. Rust's enums tend to use a simple approach: there's a large enough integer tag (usually an 8-bit integer), followed by enough space to store any of the variants. The same exact encoding could be used with a database storage engine too.
[ Parent
| on HN ]
There are no comments on this comment yet.