"The main intent of tcomb is to provide a useful tool for domain-driven design that allows [developers] to detect bugs as early as possible," tcomb developer Giulio Canti says. "In my book, models should be the single source of truth, and you should be able to derive as much as you can from them: type safety, validation, documentation, auto generated UIs. These are all satellite projects around tcomb that I'm gonna work on in the next weeks."
Canti, a Web developer and a consultant at e-commerce platform provider Madai Ltd in the United Kingdom, says that the name is derived from a contraction of the words "types" and "combinators." The library defines primitive types and combinators, a function that takes input from some types and returns a new type. When developers create an instance of tcomb, they can rely on its validity; otherwise the debugger kicks in so they can inspect the stack and quickly find out what is wrong, Canti says.