stdbrouw/Extendables — Issue #15: Make monkey-patches optional
Author: stdbrouw
Created: 2011-10-15 08:27:39+00:00
State: open
Labels: design issues

A la underscore.js, we could give people the option to either use the additional methods on Array, String et cetera directly, through monkey patches (as things work now), or through a prefix, like `_.forEach(array, fn)`. By default, we'd monkeypatch, but people could disable that behavior in the Extendables settings file.

I remain convinced that monkey-patching is the right way forward for Extendables, because it's the only way to achieve feature-parity with browsers, but if we can easily accomodate people who have objections to the practice through a few lines of code, I'm all for it.