- From: Harald Alvestrand <notifications@github.com>
- Date: Wed, 15 Jun 2016 09:29:39 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc:
Received on Wednesday, 15 June 2016 16:30:07 UTC
My complaint is the implicit statement made: apiFunction(dictionaryType? argument) states "You can omit the argument". Then prose will later say "you have to include the argument, and it has to be non-empty". In this case, the behavior on missing argument and the behavior on empty argument is intended to be the same: TypeError - "you can't use this here". If the WebIDL rule had been "CONVENTION: if an empty argument won't cause a TypeError, the argument MUST be marked Optional, to inform the user that an empty argument and an omitted argument has the same result", I would have no problem with it at all. But that extra, misleading question mark bothers me. --- 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/130#issuecomment-226242958
Received on Wednesday, 15 June 2016 16:30:07 UTC