To expound:
(+ "we" "er") is a user error.
We rely on the runtime type system of the host to efficiently detect
type errors. Unfortunately, the JS runtime does not consider that an
error, thus it is not generating an exception.
That is much different from there being semantics for (+ "we" "er") -
there aren't. Nor is it guaranteed to continue to produce "weer".
Nowhere does Clojure promise that all user errors will become
exceptions, and it is a constant balancing act to add more checks
without compromising the performance of correct programs.
If and when we have a debug mode of runtime these kind of checks would
be possible there.
Rich
> > To post to this group, send email to
clo...@googlegroups.com<javascript:;>
> > Note that posts from new members are moderated - please be patient with
> > your first post.
> > To unsubscribe from this group, send email to
> >
clojure+u...@googlegroups.com <javascript:;>