Arc Forumnew | comments | leaders | submitlogin
1 point by akkartik 5149 days ago | link | parent

Yeah, I couldn't think of anything better than maybe, and I'd love to find something better.


3 points by rocketnia 5148 days ago | link

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 5148 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 5148 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 5147 days ago | link

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

-----