This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
function guards are on master now, with a small https://github.com/metosin/malli/blob/master/docs/function-schemas.md#function-guards. One other idea - this has been discussed / suggested / complained many times in the past: the :=>
is not super friendly as the args need to be wrapped into :cat
or :catn
. Don’t want to break it, but it would be easy to add a new (optional?) function for simple function definitions. Below a 5min quick stab at it:
🙏 1
would need a way to tag “`:->` is allowed function schema type” into malli.core
, but. otherwise, that would be basically it. Nice reminder that malli is pretty easy to extend 😎
That’s very cool