JanetDocsPlaygroundI'm feeling luckyGitHub sign in

when-with



    macro
    boot.janet on line 379, column 1

    (when-with [binding ctor dtor] & body)

    Similar to with, but if binding is false or nil, returns nil 
    without evaluating the body. Otherwise, the same as with.


1 exampleSign in to add an example
Loading...
(when-with [f (file/open "nofile.exists")] 
  (print "Realy?"))
# it just returns nil 
pepePlayground