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

Generic record as field value #727

Open
ilyakooo0 opened this issue Aug 26, 2019 · 1 comment
Open

Generic record as field value #727

ilyakooo0 opened this issue Aug 26, 2019 · 1 comment

Comments

@ilyakooo0
Copy link

ilyakooo0 commented Aug 26, 2019

Allow returning a generic record contains other such records, maps, lists and strings as a value for a metadata field for templating.

I thinks the semantics are obvious.

Would be useful for more advanced stuff. (I would find it useful :) )

(You can assign it to me.)

@bergus
Copy link
Contributor

bergus commented Aug 27, 2019

See #620 for a start :-)

I feel like the current Context implementation isn't really suited for this though. Currently it does represent "a field can extract a value from an Item", and this extraction happens in the Compiler monad. I haven't measured and am no expert, but this seems to be relatively inefficient when the data doesn't come from the Item, but is actually provided by the particular Context instance. A (data)structure that is meant to hold data seems more suitable for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants