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.

Screened by: Alex Miller

Environment

None

Activity

Show:
Alex Miller
November 22, 2013, 6:53 PM

Added new patch that contains only the record? fn and omits the type stuff. Marking Screened again.

Alex Miller
November 22, 2013, 6:49 PM

Added updated patch that just adds record?

Alex Miller
November 22, 2013, 6:39 PM

Altering title and description per Rich's comment.

Rich Hickey
November 22, 2013, 5:41 PM

I think this should do record? only. type? conveys no semantics, and the things are not types themselves.

Alex Miller
October 16, 2013, 3:29 PM

Tweaked patch to say added in 1.6, not 1.5.

Completed

Assignee

Unassigned

Reporter

import

Labels

Approval

Ok

Patch

Code and Test

Fix versions

Priority

Minor