Hacker News new | past | comments | ask | show | jobs | submit login
The hunt for an immutable, type safe data record in JavaScript (stephanbehnke.com)
5 points by stephanos2k on March 6, 2016 | hide | past | favorite | 3 comments



> I was hooked on the idea of having a type safe data record that was also immutable

Me too, thus I wrote https://github.com/gcanti/tcomb


[Author here.]

That's very cool! But it's runtime checking only, right? I was aiming for compile-time checking.


Yep. However static and runtime type checking are not mutually exclusive. Actually there's a TypeScript definition file included in the repo. Moreover such a runtime type checking brings additional features like refinement types and runtime type introspection




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: