-
Notifications
You must be signed in to change notification settings - Fork 15
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
ES6-style template literals #134
Comments
Here's my attempt to specify this as an
Some comments:
|
should be
we want the string part in the current iteration, not the next one. Looks good otherwise! |
I believe the implementation as it stands (with
What we're describing is a reduction on the zip of
|
oh, right. you use the same array name. Does that even work in perl 6? |
I'm a bit confused by the question. The same array name as what? As far as I can see, I'm not redeclaring anything in the code. (Though it is untested code, of course.) |
|
Question now understood. Yes, that is a Perl 6 feature, and it feels like a good fit for what we need. Demonstrated here:
Here's the relevant bit of S05:
And
|
Thanks! |
Hey, what do you know. I did the So here's a better implementation that doesn't re-invent the
We've already said we might want to auto-cast |
Things like this:
I think it's a nice realistic case for something slang-like that calls back into the main language (more exactly, into the
EXPR
rule) in order to do the${ }
stuff. If we're able to do this nicely through some mechanism, we cover a lot of desirable ground.The text was updated successfully, but these errors were encountered: