5 ms·
Because checks to avoid some kinds of garbage can incure significant performance penalty. There is always a tradeoff in that sense, and I think Clojure is prett
by dragandj 10y ago
Because checks to avoid some kinds of garbage can incure significant performance penalty. There is always a tradeoff in that sense, and I think Clojure is pretty well balanced in that way. So, read the docs, try the functions out to see how they work, write tests, and sanitize the data at the appropriate place.
- mcguire 10y agoIf it's good enough for ANSI C, it's good enough for you...
- bpicolo 10y agoMatters so rarely that it's far better to rewrite in those cases when necessary.
- dragandj 10y agoIn core libraries? If low-level functions checked the inputs for each odd case, they'd (often unnecessarily) spend 90% of time doing those checks.