- From: Rob Eisenberg <notifications@github.com>
- Date: Sun, 18 Aug 2024 13:20:28 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 18 August 2024 20:20:33 UTC
Getting back to the issue that @NullVoxPopuli raises...what if we could introduce the idea of lazy evaluation to tagged template literals? For example, `${value}` is the same eager evaluation that we have today, but `{value}` could be lazily evaluated. Essentially, it would get converted to something like `${() => value}` under the hood. It's maybe too late to change tagged template literals, as that would be a break, but maybe a new literal type with three backticks or similar could enable this. Or what if the tagged template function itself could opt into this interpretation somehow? Obviously, this then becomes a TC39 thing, which complicated matters. But it seems to me that tagged template literals could be a lot more powerful if that part of the language were explored more. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/1069#issuecomment-2295378878 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/1069/2295378878@github.com>
Received on Sunday, 18 August 2024 20:20:33 UTC