W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2013

Re: [whatwg] Proposal: q and qq for document.querySelector and document.querySelectorAll

From: Tobie Langel <tobie.langel@gmail.com>
Date: Wed, 18 Sep 2013 18:16:02 +0200
To: Glenn Maynard <glenn@zewt.org>
Message-ID: <160A4461446F497FBD1140A0F0BF59C2@gmail.com>
Cc: "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>, Niels Keurentjes <niels.keurentjes@omines.com>
On Wednesday, September 18, 2013 at 5:27 PM, Glenn Maynard wrote:
> On Wed, Sep 18, 2013 at 7:18 AM, Niels Keurentjes <
> niels.keurentjes@omines.com (mailto:niels.keurentjes@omines.com)> wrote:
> > The spec should only concern itself with exposing functionality. Practical
> > considerations such as length of code are the responsibility of the
> > developer - if you like to have q and qq aliases you can add them yourself
> > at runtime, that's the whole point of a prototyped language. Common
> > libraries like jQuery, prototype and Mootools expose the behaviour as $ and
> > $$ for exactly the reason given, no reason to impose that on every
> > developer if they choose not to use a library.
> 
> This is nonsense. Usability and practicality are absolutely concerns of
> the spec. If libraries like jQuery need to be used for it to be convenient
> to develop for the platform, and everyone has different and incompatible
> convenience wrappers for everything, then that's a failure of the platform.
> 
> (I don't think this proposal is a good idea, though.)
^ this.

--tobie 
Received on Wednesday, 18 September 2013 16:16:13 UTC

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