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

Add instance check functions to defrecord/deftype

Description

It is often necessarty to test for instance? on deftypes/defrecords, this patch makes the two macros automatically generate a type? function implemented as (fn [x] (instance? type x)), to complement ->type and map->type
Example:

1 2 3 4 user=>(deftype x []) user.x user=>(x? (x.)) true

Environment

None

Status

Assignee

Unassigned

Reporter

Nicola Mometto

Labels

Approval

None

Patch

Code

Priority

Minor