-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add support for field interpolation in embeds #11
Comments
To me, this is a bit of a luxury issue. Since the benefits are only cosmetic(?) it seems our cycles before the 1st of August would be better spent on other things. Unless of course it's a ten minute fix (@kaeluka?). |
Cosmetic speed. |
This does not need to be fixed before August 1st. Although if it is simple it would be nice -- I do think that cosmetics goes a long way when it comes to showing this to the others and getting them interested, or even using it. This might not be the highest priority, but every little bit helps. |
@EliasC maybe we could make some milestones here and use that feature to better communicate urgency of things? |
@TobiasWrigstad Good idea! But the contents of those milestones should be decided IRL rather than early weekend morning messaging =) |
I agree. I will try to grok how they work and add a "August Meeting" milestone anyway. Seems that one does not block in waiting for "real life." |
This is based on a misunderstanding. You need interpolation ONLY for locals. You can use fields by their one-and-only name. Example:
This program will output
Edit: We could add |
That's a bit inconsistent but it will have to do for now! |
Embeds are a hack to make progress. If they are too consistent we might start to like them and keep them. Sent from my iPhone On 19/07/2014, at 12:19, TobiasWrigstad [email protected] wrote:
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |
haha, that's one way to look at it. IMHO, they're dangerously nice already. |
Currently (AFAIK), reading and writing fields in
embed
statements is convoluted, for example:the local
bs
variable is needed because#{this.data}
is not legal. This is especially convoluted when we want to update a field:We should allow fields to be used in embed interpolation, e.g.,
#{this.data}
so that the following becomes legal:respective
The text was updated successfully, but these errors were encountered: