Fork me on GitHub
#malli
<
2024-01-28
>
ikitommi12:01:36

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
ikitommi12:01:58

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 😎

Noah Bogart13:01:30

That’s very cool