W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2014

Re: [whatwg] Notifications: the ability to specify notifications behavior

From: Jonas Sicking <jonas@sicking.cc>
Date: Fri, 15 Aug 2014 08:35:52 -0700
Message-ID: <CA+c2ei8hBin_gGofPnB+PrBiwZ9z2J8XT2Rv77N8jxEiNYGzAg@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: WHAT Working Group <whatwg@whatwg.org>, Michael Henretty <mhenretty@mozilla.com>, James Burke <jburke@mozilla.com>, julienw@mozilla.com, Robert Bindar <robertbindar@gmail.com>
On Aug 15, 2014 1:57 AM, "Anne van Kesteren" <annevk@annevk.nl> wrote:
>
> On Fri, Aug 15, 2014 at 1:37 AM, Robert Bindar <robertbindar@gmail.com>
wrote:
> > We can not say accurately if the default will always be false because
> > the platform may or may not support the behavior, or it might be
overridden
> > by a user defined setting.
>
> Well, if we introduce new dictionary members they will default to
> false. So I guess what Jonas was asking for is that we should think of
> names that make sense given that. Of course, they will just be hints
> anyway due to platform conventions and user overrides.

That's not necessarily true. Dictionary members default to "absent" if they
don't have a default value. So we could treat default as different from
both true and false.

But it tends to make for a confusing API to treat optional boolean
arguments as different from false.

/ Jonas
Received on Friday, 15 August 2014 15:37:05 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:22 UTC