News for hackers. Stuff that matters.
Re:Show HN: Ezno, a type checker for JavaScript and optimise... by zoom6628 on Friday September 23, 2022 @09:20PM (#32958947)
You beat me to it. Exactly this - use C#.
Re:Show HN: Ezno, a type checker for JavaScript and optimise... by cjonas on Friday September 23, 2022 @11:55PM (#32959621)
Last I checked C# didn't have an algebraic type system...
Re:Show HN: Ezno, a type checker for JavaScript and optimise... by Smaug123 on Saturday September 24, 2022 @05:12AM (#32960941)
But F# is sitting in the corner with an eyebrow cocked suggestively.
Re:Show HN: Ezno, a type checker for JavaScript and optimise... by TDiblik on Sunday September 25, 2022 @03:46AM (#32969656)
C# does not have "type" keyword and really lacks behind with enums. You can theoretically replace algebraic type system with inheritance, however that's a lot of times ugly and you propablly shouldn't do it.