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 (2)

  1. My problem with clojure's error is that it doesn't show up where you made the mistake. Because of nil punning, you will see error happen few steps down the line and usually it isn't clear from error message what went wrong.

    In that regard, chez scheme was much better. Haven't tried Emacs lisp, so can't say about that.

    Replies (1)
    1. And with lots of functions being lazy by default, you might get errors in a completely place when the code finally runs because a value is needed.

      Not having more explicit separation between lazy and eager is a bit of a mistake, IMO. But I think this all boils down to the design decision to have completely interchangeable/polymorphic sequence types, which you say you like. I'm not sure you can really have it both ways.

      Personally, I like knowing exactly what type a value has, so you can reason better about the behaviour and performance of a piece of code without having to reason about the potential call sites. And having eager evaluation by default with explicit delay/force where laziness is desired.