We're updating the issue view to help you get more done. 

Add record? predicate

Description

Would like a predicate that can be used to check whether an object is an instance of a defrecord.

Patch: clj-394-add-predicate-for-record-3.diff

Approach: Use existing marker interface IRecord to add new record? predicate.

1 2 3 4 5 6 user=> (defrecord Foo [x]) user.Foo user=> (def f (->Foo 1)) #'user/f user=> (record? f) true

Screened by: Alex Miller

Environment

None

Status

Assignee

Unassigned

Reporter

import

Labels

Approval

Ok

Patch

Code and Test

Fix versions

Priority

Minor