Clojure-Contrib

clojure.contrib.condition: list? not the correct predicate for detecting forms

Details

  • Type: Defect Defect
  • Status: In Progress In Progress
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

The handler-case macro detects forms of the form "(handle ...)" by checking for items in the body for which list? returns true that begin with the symbol handle. code can be built from seqs that are not lists (e.g., clojure.lang.Cons's or lazy-seqs). The proper predicate is "seq?" not "list?".

Activity

Alex Miller made changes -
Field Original Value New Value
Approval Test [ 10013 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: