[heycam/webidl] The specific type of any (general question) (#823)

([2.13.1](https://heycam.github.io/webidl/#idl-any))

> The any type is like a discriminated union type, in that each of its values has a specific non-any type associated with it. For example, one value of the any type is the unsigned long 150, while another is the long 150. These are distinct values.
>
> The particular type of an any value is known as its specific type. (Values of union types also have specific types.)

My understanding of _any_ had been that values of this type were only apt to be created when consuming external input. The spec gives the examples "unsigned long 150" and "long 150" for possible specific types/values, though, which suggests I might have the wrong idea about it since neither of these specific types are ones which could have resulted from converting an ES value.

Could anybody clarify the intended scope / usage of _any?_ Are there existing examples where it gets used with specific types other than the handful that can be produced during [ES value conversion](https://heycam.github.io/webidl/#es-any)?

-- 
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/823

Received on Monday, 18 November 2019 03:13:51 UTC