snek
snek
I don't think that this issue is as specific as the issue OP implies: For example: ``` export function test(a: i64 = 3): void { } ``` or for that...
Definitely +1 to moving it. I wonder though, could we take it a step further and put this guide (or something similar) in the actual spec?
Is there a reason you're calling out those two specifically? `ReturnIfAbrupt` has the same behavior for example.
would this be a proper fix for this issue? ```diff diff --git a/spec.html b/spec.html index 9797576..d71e3b1 100644 --- a/spec.html +++ b/spec.html @@ -8574,10 +8574,10 @@ [[OwnPropertyKeys]] ( ) When the...
yeah i don't have any genius ideas to fix this. i was just thinking either someone will have come up with something or this can be closed.
allen's suggestion is probably the most sensical so far, so if that isn't found to be worth implementing i'd agree that this is working as intended.
> ... ?A( ?B(), ?C() ) ... At that point you should probably be using multiple lines just for the sake of clarity.
You can detect the order by making them both throw
concretely it allows you to write something like ```js const cache = new Map(); function myCoolTag(strings, ...values) { if (!cache.has(strings)) { cache.set(strings, computeComplexLogic(strings)); } return cache.get(strings)(values); } myCoolTag`whatever ${1} stuff`;...