core.match

Matching Diagnostics

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

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)

Activity

Hide
David Nolen added a comment -

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

Show
David Nolen added a comment - Continuing the conversation from GitHub - concerning your changes, we should probably show what current occurrence failed to match as well as the breadcrumb.
Hide
David Nolen added a comment -

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.

Show
David Nolen added a comment - 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.
Hide
Ambrose Bonnaire-Sergeant added a comment -

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.

Show
Ambrose Bonnaire-Sergeant added a comment - 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.
David Nolen made changes -
Field Original Value New Value
Description Communicate to the user precisely what failed to match. Communicate to the user precisely what failed to match. This should probably be done via a new match macro - match-debug. Conversation here: http://groups.google.com/group/clojure/browse_thread/thread/675456fba1712214
David Nolen made changes -
Description Communicate to the user precisely what failed to match. This should probably be done via a new match macro - match-debug. Conversation here: http://groups.google.com/group/clojure/browse_thread/thread/675456fba1712214 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)
Hide
David Nolen added a comment -

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

Show
David Nolen added a comment - Lowering priority. Happy to take a patch, but I don't think I'll be looking into this myself in the near future.
David Nolen made changes -
Priority Major [ 3 ] Minor [ 4 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: