Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity-like syntax #5

Closed
cgrand opened this issue May 7, 2019 · 2 comments
Closed

Entity-like syntax #5

cgrand opened this issue May 7, 2019 · 2 comments
Labels

Comments

@cgrand
Copy link
Owner

cgrand commented May 7, 2019

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 cgrand added the ponder label May 7, 2019
@cgrand
Copy link
Owner Author

cgrand commented May 7, 2019

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 cgrand mentioned this issue May 7, 2019
@cgrand
Copy link
Owner Author

cgrand commented Oct 8, 2019

Currently supported

@cgrand cgrand closed this as completed Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant