enlive icon indicating copy to clipboard operation
enlive copied to clipboard

Replace element struct with Element record

Open semperos opened this issue 13 years ago • 1 comments

If the element struct map has remained for backwards compatibility, then I'd understand ignoring this pull request. I've encountered some issues where libraries I use sometimes try to dissoc a core field on an Enlive element, which obviously causes an error using the struct map (where it simply "downgrades" a record to a normal map).

Attached is a simple transformation from using a struct map to using a Clojure record instead. Thanks for the consideration.

semperos avatar Aug 01 '12 15:08 semperos

This would be an improvement.

jackrusher avatar Dec 26 '12 18:12 jackrusher