W3C home > Mailing lists > Public > public-media-capture@w3.org > April 2014

Re: WebIDL-compatible syntax compromise

From: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 2 Apr 2014 09:28:30 -0700
Message-ID: <CABkgnnW8ky7-xrhO2qKcsqR7uhhRrF_AfeBOoEDzF+kFOCUrNA@mail.gmail.com>
To: Dan Burnett <dburnett@voxeo.com>
Cc: "public-media-capture@w3.org" <public-media-capture@w3.org>
Nice work.  I hope that the date has no bearing on this.

On 1 April 2014 18:17, Dan Burnett <dburnett@voxeo.com> wrote:
> typedef (long or ConstrainLongRange) ConstrainLong;
> typedef (double or ConstrainDoubleRange) ConstrainDouble;
> typedef (VideoFacingModeEnum or sequence<VideoFacingModeEnum>)
> ConstrainVideoFacingMode;
> typedef (DOMString or sequence<DOMString>) ConstrainDOMString;

Every time I see this I think: damn, WebIDL needs proper generics, not
the half-baked one that it has (where sequence and Promise are the
only things that can be blessed with generic parameters)...
Received on Wednesday, 2 April 2014 16:28:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:25 UTC