News for hackers. Stuff that matters.
Re:Migrate Jest to TypeScript by zeugmasyllepsis on Wednesday January 16, 2019 @10:00AM (#18921344)
I'm certainly not well versed in OCaml, but my understanding is that it is also structurally typed. This particular example would also be permitted in OCaml, correct?
Re:Migrate Jest to TypeScript by octachron on Wednesday January 16, 2019 @12:18PM (#18922674)
No, records are nominally typed in OCaml, thus the two types `A` and `B` would be deemed incompatible.
Re:Migrate Jest to TypeScript by wtetzner on Wednesday January 16, 2019 @12:47PM (#18922998)
But objects in OCaml are structurally typed (well, row typed).