Repository navigation
Changelog
- Add support for multi-arity protocol methods by @julienvincent in fdcf1e4
Currently malt only has support for single-arity protocol methods. This
was a pretty big oversight in its original design and fixing this has
had significant implications for backwards compatibility.This patch adds support for multi-arity, defined using the
defnsyntax
instead ofdefprotocolto reduce ambiguity.All static protocol method specs are now stored within a vector under
:malt/specson the protocol sig. The vector contains one spec per
arity.This is a significant deviation from the previous design which stored
all malt spec data directly on the protocol signature using:malt/
prefixed keys.The previous format is still preserved for backwards compatibility -
however this is only done for single-arity methods and will be removed
in the future in favour of the new:malt/specsinterface. - Ensure method metadata includes full method specs by @julienvincent in 73269e7
Previously malt excluded the precompiled schema validators from method
metadata specs.This patch brings method specs up to speed such that they are now
identical to protocol specs.
For the full changelog visit v1.1.2...v1.2.0