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

Unless it doesn't:

    CL-USER 14 > (loop for i from 0 below 10
                       sum i into isum
                       when (evenp i) sum i into evensum of-type integer
                       else when (oddp i) sum i into oddsum
                       finally (return (* isum evensum oddsum)))
    22500



Arguably that still looks like Lisp (i.e. it's a valid S-expression). But then you also have reader macros...


Well, s-expressions are not Lisp. Not every s-expression is a valid Lisp program.

(1 * 2 ^ 3 + 1) is a valid s-expression, but not a valid Lisp program. With an INFIX macro it could be:

(infix 1 * 2 ^ 3 + 1) could be a valid Lisp program, with a corresponding infix macro.

But the Lisp syntax still is on top of the s-expression syntax...




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

Search: