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

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - Converted from http://www.assembla.com/spaces/clojure/tickets/74 Attachments: 0001-Use-seq-instead-of-list-to-determine-codeiness-.-Ref.patch - https://www.assembla.com/spaces/clojure/documents/cqHmfyuIur35MTeJe5cbLr/download/cqHmfyuIur35MTeJe5cbLr
Hide
Assembla Importer added a comment -

technomancy said: [file:cqHmfyuIur35MTeJe5cbLr]: Implements the fix

Show
Assembla Importer added a comment - technomancy said: [file:cqHmfyuIur35MTeJe5cbLr]: Implements the fix

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: