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

Re: Prollyfills and the global namespace / multi-fills

From: François REMY <francois.remy.dev@outlook.com>
Date: Wed, 3 Jul 2013 19:10:19 +0200
Message-ID: <DUB120-DS1381F0BF176EDF76C00677A5730@phx.gbl>
To: "Brian Kardell" <bkardell@gmail.com>, <public-nextweb@w3.org>
> The idea with Hitch was to be a prollyfill framework
> giving you places to encapsulate and a global object
> upon which to hang proposed things.
> As someone who writes web sites and apps I value
> the sites I write not suddenly breaking when a new
> browser is released much more than an unforseeable
> perf bump - the risk is just too great.

I agree with you here.

I think good guidelines are:
- create a module if possible (people could decide to import it on the 
global namespace, but that's an opt-in)
- when you use some global namespace, use a prefix (no code should use your 
function by mistaking it for a native implementation)
Received on Wednesday, 3 July 2013 17:10:42 UTC

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