yogthos / clojure-error-message-catalog

a catalog of common Clojure errors and their meaning
448 stars 24 forks source link

Adds file for 'Duplicate case test constant' #1

Closed bhb closed 8 years ago

bhb commented 8 years ago

Please let me know if you have any feedback. Thanks for organizing this project!

yogthos commented 8 years ago

👍

tolitius commented 8 years ago

@bhb: this is great, thanks for contributing!

I would suggest to add an original twice function, then this becomes REPL'able: i.e. can be run through REPL to get the error, and to solve it.

bhb commented 8 years ago

@tolitius Good catch! The idea of the example was that we change twice-plus into twice (which is why we remove the second param), but I messed up the example.

I've made a new example which I think is clearer. I'll open a PR for it.