April 2012
Intermediate to advanced
296 pages
7h 3m
English
We have shown how to extend existing types to implement new abstractions with protocols, but what if we want to create a new type in Clojure? That is where datatypes come in.
A datatype provides the following:
We will use the deftype macro to define a new datatype, called CryptoVault, that will implement two protocols, including IOFactory.
Now that gulp and expectorate support several existing Java classes, let’s create a ...
Read now
Unlock full access