Re: [heycam/webidl] Making methods more future-proof (#954)

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