Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In what way is "garbage in garbage out" better than consistent handling and explicit failure, especially for something so well-defined mathematically? That's sort of a lazy argument, imo.

I shouldn't need to pull in more libs for baseline language expectations, either. Core libraries are what languages really are, much more important than just syntax.



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.


Matters so rarely that it's far better to rewrite in those cases when necessary.


In core libraries? If low-level functions checked the inputs for each odd case, they'd (often unnecessarily) spend 90% of time doing those checks.


If it's good enough for ANSI C, it's good enough for you...




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

Search: