W3C home > Mailing lists > Public > public-nextweb@w3.org > September 2013

conventions for prollyfills

From: Brian Kardell <bkardell@gmail.com>
Date: Wed, 25 Sep 2013 07:30:30 -0400
Message-ID: <CADC=+jcXeZodN-JKr0Ch2EOTUVWioKmveXZ7m4GJ9w5rOUwD6w@mail.gmail.com>
To: public-nextweb@w3.org
As a prollyfill picks up steam and nears becoming official it seems likely
that you might find multiple things wanting to use it... if those things
are ideas that potentially stack up you can quickly get in a situation
where each one is packaging up another copy of the prollyfill.

let me give you a simple example: promises.  pretty much every piece of
async api I write is using promises.  I have a lib thingA which builds on
another lib things and that provides thingC.  Other than a shared
understanding of promises they are independent concepts.  They are all
using RSVP for promises (with a alias to attach .all to Promise)

Promises are pretty darn close, but given the track record of changes
before standardization and lack of native implementations or final spec
status - I think this is still a prollyfill and my own philosophy is
”forward compatibility”.

This in mind, it might be nice to create a global root object for
prollyfills which could be used to create modernize style feature testing.
In other words, something like:

Prollyfill.Promise = RSVP.Promise;

would allow us to do feature testing and conditionally download support.
Received on Wednesday, 25 September 2013 11:30:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:05:54 UTC