News for hackers. Stuff that matters.
Re:The hunt for an immutable, type safe data record in JavaS... by gcanti on Sunday March 06, 2016 @11:10AM (#11234201)
> 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

Re:The hunt for an immutable, type safe data record in JavaS... by stephanos2k on Sunday March 06, 2016 @11:14AM (#11234219)
[Author here.]

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

Re:The hunt for an immutable, type safe data record in JavaS... by gcanti on Sunday March 06, 2016 @11:30AM (#11234308)
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