[MATCH-4] Optimized pattern matching on deftype/record, POJOs Created: 04/Sep/11 Updated: 27/Oct/11
|Reporter:||David Nolen||Assignee:||David Nolen|
: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.
|Comment by David Nolen [ 27/Oct/11 4:41 PM ]|
Given the recent ClojureScript property access discussions this seems like an acceptable syntax for high-performance property access.
But probably not since then we should probably throw if someone tries to declare a different type in the row.