February 2018
Intermediate to advanced
304 pages
7h 11m
English
We’ve 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’s 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 new ...