Re: [sysapps/raw socket api]: New version based on Madrid meeting comments and comments from Ke-Fong Lin

On Tue, Apr 23, 2013 at 11:04 AM, Marcos Caceres <w3c@marcosc.com> wrote:
>
>
>
> On Tuesday, April 23, 2013 at 6:52 PM, Jonas Sicking wrote:
>
>> Yup, as written they are optional.
>>
>> What we can and should do is to use prose to say that an exception is thrown if either of them is left out when the constructor is called.
> If the method has required not-nullable arguments, shouldn't those be the first two arguments of the method (and the third argument being the optional dictionary stuff)?

I think either is fine. I think we should use whatever creates the
most understandable code for authors.

It would be nice if WebIDL pointed out that this was an ok practice.

/ Jonas

Received on Tuesday, 23 April 2013 18:24:04 UTC