Arc Forumnew | comments | leaders | submitlogin
3 points by rocketnia 4943 days ago | link | parent

As far as "let :provided" goes, I'm thinking "checklet":

  (let x init
    (when (f x)
      ...body...))
  ==>
  (checklet x f init
    ...body...)
Implementation:

  (def fn-checklet (test x body)
    (test&body x))
  (mac checklet (var test x . body)
    `(fn-checklet ,test ,x (fn (,var) ,@body)))