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

The name of 'pushnew isn't bad at all, so how about the names "construe" for 'consif and "conscheck" for 'conswhen? They would be cousins to the hypothetical 'pushtrue, 'pushcheck, and 'consnew.

The name of 'maybe could be... um... "combinetrue".



3 points by rocketnia 4943 days ago | link

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)))

-----

3 points by rocketnia 4943 days ago | link

"how about the names "construe" for 'consif"

Whoops, "construe" is an English word. XD Better call it "cons-true".

-----

2 points by Pauan 4942 days ago | link

Or for more confusion we can call it "const" as in "cons-t" :P

-----