Details
-
Type:
Enhancement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
(match [x]
[({:a 0 :b 1} :type Foo)] :a0
...)
:a and :b would be converted to field access, i.e. (.a x)
As with primitive array matching, we should do an instance check followed by hinted field access.
We should consider adopting the deftype/record syntax.
Activity
David Nolen
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Priority | Major [ 3 ] | Minor [ 4 ] |
David Nolen
made changes -
| Priority | Minor [ 4 ] | Major [ 3 ] |
David Nolen
made changes -
| Description |
(match [x]
[({:a 0 :b 1} :type Foo)] :a0 ...) :a and :b would be converted to field access, i.e. (.a x) As with primitive array matching, we should do an instance check followed by hinted field access. We should consider adopting the deftype/record syntax. |
{code}
(match [x] [({:a 0 :b 1} :type Foo)] :a0 ...) {code} :a and :b would be converted to field access, i.e. (.a x) As with primitive array matching, we should do an instance check followed by hinted field access. We should consider adopting the deftype/record syntax. |