<< Back to previous view

[MATCH-99] Example in Overview Wiki Page Results in an Exception Created: 02/Dec/14  Updated: 02/Dec/14

Status: Open
Project: core.match
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Trivial
Reporter: Paavo Parkkinen Assignee: David Nolen
Resolution: Unresolved Votes: 0
Labels: documentation

Attachments: Text File or-pattern-example.patch    
Patch: Code

 Description   

The first example for "Or Patterns" on the Overview page in the wiki will cause an IllegalArgumentException.

user=> (use '[clojure.core.match :only (match)])
nil
user=> (let [x '(1 2 3)]
  #_=>   (match [x]
  #_=>     [[1 (:or 3 4) 3]] :a0
  #_=>     [[1 (:or 2 3) 3]] :a1))

IllegalArgumentException No matching clause: (1 2 3)  user/eval5476 (form-init4056337243047274400.clj:2)

The example should probably either use a vector for x, or a seq pattern in the match. Included patch with the latter.






[MATCH-7] Eliminate distinction between leaf-bind-expr and bind-expr Created: 04/Sep/11  Updated: 21/Oct/11

Status: Open
Project: core.match
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Trivial
Reporter: David Nolen Assignee: David Nolen
Resolution: Unresolved Votes: 0
Labels: None


 Description   

We should have a better considered binding model that works for all cases instead of treating leaf nodes and regular binding as different cases.






Generated at Fri Dec 19 09:52:49 CST 2014 using JIRA 4.4#649-r158309.