Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.match by

Communicate to the user precisely what failed to match. Conversation here: http://groups.google.com/group/clojure/browse_thread/thread/675456fba1712214. We adopt the behavior of condp since that is closer to what match does and will do (predicate dispatch)

5 Answers

0 votes
by

Comment made by: dnolen

Continuing the conversation from GitHub - concerning your changes, we should probably show what current occurrence failed to match as well as the breadcrumb.

0 votes
by

Comment made by: dnolen

Matching diagnostics will be complicated by MATCH-1. Clojure doesn't yet support simple data conveying exceptions. Will probably have to use a combination of proxy and definterface.

0 votes
by

Comment made by: ambrosebs

I haven't yet kept up with your backtracking changes, and I just noticed this conversation, so I'll have to have another look at diagnostics with backtracking.

0 votes
by

Comment made by: dnolen

Lowering priority. Happy to take a patch, but I don't think I'll be looking into this myself in the near future.

0 votes
by
Reference: https://clojure.atlassian.net/browse/MATCH-2 (reported by dnolen)
...