- From: Tab Atkins Jr. <notifications@github.com>
- Date: Tue, 30 May 2017 11:23:34 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 30 May 2017 18:24:06 UTC
Yeah, both (letting some dictionaries, such as options dictionaries, throw on unknown, and letting people test for whether a key is known to a dictionary ahead of time) seem like reasonable use-cases to me. The former is best in general, as you can't screw it up by forgetting to check (or if you do, it'll fail in a much more obvious way on the user's side, and hopefully you're tracking unhandled exceptions), while the latter is useful when you *do* need to be proactive and know ahead of time what's available. -- 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/107#issuecomment-304965346
Received on Tuesday, 30 May 2017 18:24:06 UTC