A subtle change in the definition. Added two quote marks.
(de if-let Args
## Better than anaphoric `if` because you can name the test result
## yourself.
(let ((@Pattern Test @Then @Else) Args
@Test-Result (eval Test))
(eval
(fill
'(if '@Test-Result
(let
hi all,
I totally dont like it. I vote.
All this useless.
Can you write here #Usage examples of (if-let) in current language feature
set?
Coder already have all needed, like in forth.
If coder want, it have all required to implement this by himself.
Like reduce and - from clojure I've used to
Hi Rick,
thanks for the ideas :)
However, as Mike Pechkin wrote, I do also believe that such a construct
is rather useless.
The examples are too simple. They can be easily rewritten as:
(if-let X 13 (- X 1) 0) #- 12
(if 13 (dec @) 0)
(if-let X 13 (- X 1)) #- 12 # you can leave