Hacker News new | ask | show | jobs
A short response to the Rebol vs Lisp macros article (gist.github.com)
4 points by ejbs2 3703 days ago
1 comments

An even briefer response:

    (defun greater10 (value code)
      (when (> value 10)
        (apply (car code)
               (cdr code))))

    (let ((msg "Hello"))
      (greater10 20 `(format t "~a~%" ,msg)))
That's not really equivalent to what Rebol does or what my stuff does. What do you do when you want to unbind msg? Or when you want to carry around your bindings with you and change them through function calls?
If you wanted to unbind msg, you wouldn't have bound it in a let block.

If you wanted to carry around your bindings with you and change them through function calls, you'd probably use a special variable.