I mean equivalence to untagged behavior, if that helps.
FWIW, as stated previously, I'm not married to the name.
On Wed, Dec 12, 2018 at 20:31 Mark Miller wrote:
>
> On Wed, Dec 12, 2018 at 5:24 PM Isiah Meadows
> wrote:
>
>> The template is being expanded as if the template itself is
On Wed, Dec 12, 2018 at 5:24 PM Isiah Meadows
wrote:
> The template is being expanded as if the template itself is untagged.
Does this mean that you describe what tagged templates do, or what untagged
templates do, as "expanding" something? If so, what is the intuition behind
that prior usage
The template is being expanded as if the template itself is untagged. The
point of this is a template tag that just does the default untagged
behavior of coercing all expressions to strings and joining the whole thing
together.
On Wed, Dec 12, 2018 at 20:21 Mark Miller wrote:
> What is the
What is the intuition behind "expand"? What is being expanded, and what is
it expanding into?
On Tue, Dec 11, 2018 at 10:59 PM Isiah Meadows
wrote:
> Those names a little too generic for my liking here. What about
> `String.expand(template, ...params)`?
>
> And also, let's not try to bake a
thank you all for the feedback, I appreciate those who pointed out the
flaws in the logic. I can see that this is an ambiguous proposal. Though I
did not realize it at the time, this proposal is competing with
https://github.com/tc39/proposal-partial-application, as the two syntax's
cannot exist
Yeah, `String.expand` is the nicest one I've seen so far.
On 12/12/2018 10:05, T.J. Crowder wrote:
> On Wed, Dec 12, 2018 at 6:59 AM Isiah Meadows
> wrote:
>>
>> Those names a little too generic for my liking here. What about
>> `String.expand(template, ...params)`?
>
> I like it.
>
>> And
On Wed, Dec 12, 2018 at 6:59 AM Isiah Meadows
wrote:
>
> Those names a little too generic for my liking here. What about
> `String.expand(template, ...params)`?
I like it.
> And also, let's not try to bake a traditional template engine into the
> JS spec - syntactic template strings already
7 matches
Mail list logo