Contracts.coffee is a dialect of CoffeeScript with built-in support for contracts. It is inspired by the contract system found in Racket. Contracts let you clearly—even beautifully—express how your code behaves, and free you from writing tons of boilerplate, defensive code. You can think of contracts as assert on steroids. Basics Here’s a simple example of a contract on a function: This says that