clj_protocol
Clojerl protocol helper functions.
Summary
Functions
-
impl_module(Protocol, Type)
Returns the name of the module that implements
Protocol
forType
. -
not_implemented(Protocol, Function, Value)
Generates an error with information regarding an unimplemented protocol function.
Functions
impl_module(Protocol, Type)
-spec impl_module(atom() | binary(), atom() | binary()) -> atom().
Returns the name of the module that implements Protocol
for
Type
.
not_implemented(Protocol, Function, Value)
-spec not_implemented(module(), atom(), any()) -> no_return().
Generates an error with information regarding an unimplemented protocol function.