- From: Ron Buckton <notifications@github.com>
- Date: Wed, 03 Feb 2021 08:58:05 -0800
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 3 February 2021 16:58:17 UTC
The first example is one of the motivations behind https://github.com/tc39/proposal-partial-application: ```js const nextframe = new Promise(requestAnimationFrame(?)); ``` Type systems can help in some ways (informing the user if the type of the argument is incompatible), whereas `Symbol`-based protocols can help in others. I'm not sure there's a single solution given how flexible JavaScript is. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/issues/954#issuecomment-772661406
Received on Wednesday, 3 February 2021 16:58:17 UTC