Writing code against an abstraction rather than against a concrete
implementation is especially useful in ClojureScript, since the APIs can
vary from browser to browser.
e
On Thu, Mar 26, 2015 at 8:27 AM, Thomas Heller wrote:
> The general advice is to use Protocols if you need more than one
>
The general advice is to use Protocols if you need more than one implementation
of a function (ie. different targets). If there is only one, use a function.
I found myself always starting with a simple function and eventually refactor
to a protocol if needed (which is quite rare). It is generall