diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 7613e5a9..18f6b5ff 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -313,8 +313,9 @@ ,;body))) (defmacro if-with - "Similar to with, but if binding is false or nil, returns - nil without evaluating the body. Otherwise, the same as with." + "Similar to with, but if binding is false or nil, evaluates + the falsey path. Otherwise, evaluates the truthy path. In both cases, + ctor is bound to binding." [[binding ctor dtor] truthy &opt falsey ] ~(if-let [,binding ,ctor] (defer (,(or dtor :close) ,binding) ,truthy)