cgrand / enlivez

8 stars 0 forks source link

Entity-like syntax #5

Closed cgrand closed 4 years ago

cgrand commented 5 years ago

At some point when doing exploratory design, I played with entities. However they are too powerful, too dynamic: once they are passed to clojure code you can't know what they are going to be used for (and no, wrapping and tracking is not an option).

However the appeal was just to be able to write (:item/title item) in the template, not being forced to destructure upfront.

Hence the following idea: make (:attr eid) work in templates (and all variants).

cgrand commented 5 years ago

This could also alleviate the problem exposed in #2: the fact of having no match because of a missing attr. Entity access would "expand" to a get-else

cgrand commented 4 years ago

Currently supported