Unofficial Hacker News companion — get notified on comment replies, and more.

Chez from a Clojurian perspective (opens external site)

101 points by pushpankar 3 days ago | get-aksh.com | 61 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (3)

  1. > But for what it's worth, Emacs lisp might be the best way to learn lisp because Emacs is more or less a virtual lisp machine if you squint hard enough.

    This is really true. Emacs Lisp is a much worse Lisp than Scheme (dynamic binding instead of lexical binding by default is the most obvious thing, though of course you can opt in to it), but the thing Emacs Lisp does is that it really nails the "interactive coding" experience. Like, you just edit and run code from inside the thing that is running the code, it's really cool. It makes the "Lisp machine" thing click better than anything else I've used.

    I used gone from vim -> emacs -> neovim (sometimes embedded in vscode) as my editor of choice, and the interactive environment thing is one of the things I miss most from emacs.

    Replies (2)
    1. To be clear, I am not arguing for or against Emacs as an editor. Just in favor using Emacs Lisp as a way of learning Lisp.

      the thing Emacs Lisp does is that it really nails the "interactive coding" experience. Like, you just edit and run code from inside the thing that is running the code, it's really cool. It makes the "Lisp machine" thing click better than anything else I've used.

      Basically, that's a traditional difference between a Lisp and Scheme (but if you call both "lisps" I know what you mean).

      And you can do this: https://www.youtube.com/watch?v=dljNabciEGg

    2. > dynamic binding instead of lexical binding

      cloja pleeease... we stopped using dynamic binding in Elisp like ten years ago. Lexical binding arrived in Emacs 24, released in June 2012.