Hacker News new | ask | show | jobs
by nkassis 5526 days ago
I'm a newb or something but :

(cdr ()) makes it explode. What's nil? null nil don't exist

I do really like this. I was hoping for something like this where it would allow me to write lisp instead of javascript.

2 comments

  > (cdr '())
  => ()
  > (cdr (list­))
  => ()
well, (cdr ()) is an error in standard Scheme, as empty list is not pair.
I'll fix this so that invalid expressions are reported and car and cdr of () are errors.