An anonymous record type in a language whose type system is an enum LangType in Rust is just HashMap<String, Box<LangType>>
My pet project requires an STLC with anonymous record types and type inference for anonymous records wasn't too bad
My pet project requires an STLC with anonymous record types and type inference for anonymous records wasn't too bad
PureScript has much better support for row polymorphism for this reason.