News for hackers. Stuff that matters.
Re:TypeScript’s quirks: How inconsistencies make the languag... by alexcole on Friday January 31, 2020 @11:35PM (#22208697)
I think that Flow’s approach of using nominal types for classes and structural for everything else makes more sense. Are there really cases you expect classes to be structural types?
Re:TypeScript’s quirks: How inconsistencies make the languag... by jolux on Saturday February 01, 2020 @10:25AM (#22210961)
Objects in OCaml are all structurally typed.