Hacker News new | past | comments | ask | show | jobs | submit login

do you think elisp will work for this book? or would one need to implement unique common lisp features in elisp? or will elisp just be too slow



You should use Common Lisp for this book, unless specifically want a challenge.


most of it should work in elisp, note that elisp and common lisp have different semantics for IF.

you might find some variances later on. also elisp doesn’t have as nice a debugging environment as SLIME so I’d honestly recommend just setting up common lisp


As far as I can tell, any Elisp if-form that is also a valid Common Lisp if-form has the same semantics; but Elisp allows more than one else-form in its syntax, with additional semantics.

It's something like:

  (defmacro elisp-if (expr then &rest elses)
    `(cond (,expr ,then) (t ,@elses)))
Whereas the regular if is like:

  (defmacro cl-if (expr then &optional else)
    `(cond (,expr ,then) (t ,else)))
In a book that uses Common Lisp, you shouldn't see an if-form that isn't Elisp-compatible.


Oh yes you are 100% right, I just had a brain fart. Thanks for correcting


What does “IF” stand for in your comment?

Are you referring to the IF expression or something different?


ignore me, read the comments above




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: