+++ title = "Type system to enforce" author = "Yann Herklotz" tags = [] categories = [] backlinks = ["2e4a"] forwardlinks = ["2e4a2"] zettelid = "2e4a1" +++ The first solution is to use linear types to enforce the resource usage constraints at compile time, which guarantees that destructive updates can be performed on the data structure, as it will never be read again.