Re: [heycam/webidl] Add bigint type (#525)

Looking into this some more, adding support for unions that include bigint and a numeric type (with the "call `ToNumeric` and see what falls out" semantics) is fairly straightforward. Adding support for overloading is significantly more hairy, especially when involving unions (such as in the example below). The only real use case I've seen so far is [`NumberFormat`](https://github.com/tc39/ecma402/pull/236), and unions are sufficient there. My inclination would be not to allow overloading at this point; I'm fine going either way for unions – we could discuss again if jsidl ever happens.

```idl
interface X {
  void foo((bigint or Node) x);
  void foo(long x);
};
```

Thoughts?

-- 
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/pull/525#issuecomment-553373687

Received on Wednesday, 13 November 2019 12:01:00 UTC