3 ms·
How does this differ from something like https://github.com/gcanti/tcomb https://github.com/gcanti/tcomb ?
by acemarke 8y ago
How does this differ from something like https://github.com/gcanti/tcomb https://github.com/gcanti/tcomb ?
- dosy 8y agoHard to say after a quick look at an early stage, but I think `tcomb` is comprehensive (it even has a typed JSON format, I think), and focuses on letting you define models, with getters / setters that are type checked. My one abstracts all type related code into some functions so you can apply it when you want, rather than it happening automatically. I think I like this better because it's more clear when type will be applied. Also I prefer my syntax, but 'tcomb' syntax is an achievement and also concise.