▲ | ackfoobar 5 days ago | |||||||
> I have no idea I can tell. Thankfully the OCaml textbook has this explicitly called out. https://dev.realworldocaml.org/variants.html#combining-recor... > The main downside is the obvious one, which is that an inline record can’t be treated as its own free-standing object. And, as you can see below, OCaml will reject code that tries to do so. | ||||||||
▲ | wiseowise 5 days ago | parent [-] | |||||||
That's for embedded records. You can have the same thing as Kotlin but with better syntax. | ||||||||
|