I like this proposal!

On 2011-09-27, at 12:42 AM, Eric Lemoine wrote:

> 
> 
> On Sunday, September 25, 2011, Xavier Mamano (jorix) 
> <xavier.mam...@gmail.com> wrote:
> > Hi,
> >
> > In OL exists code labeled as *Deprecated* but it is not possible to
> > exclude deprecated code in compressed code, examples: "Util.js",
> > "BaseTypes/Class.js", "BaseTypes/Element.js" ...
> >
> > If these source files are split into two, for example "Util.js" and
> > "Util-deprecate.js" (with "@requires OpenLayers/Util.js"), so could easily
> > create configuration files to exclude deprecated code.
> 
> Hi
> 
> I think that's an interesting idea.
> 
> People who do use deprecated code in their apps would need to include 
> *-deprecate.js files in their builds but I guess this is something we can 
> document in the release notes.
> 
> For classes I guess we would have lines like 
> "MyClass.prototype.myDeprecatedFunction = function() { ... };" in the 
> -deprecate.js files.
> 
> I'd see this as a smooth transition towards actually removing deprecated 
> code, both for users and us developers.
> 
> What do others think about it?
> 
> 
> -- 
> Eric Lemoine
> 
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
> 
> Tel : 00 33 4 79 44 44 96
> Mail : eric.lemo...@camptocamp.com
> http://www.camptocamp.com
> 
> _______________________________________________
> Dev mailing list
> d...@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev

_______________________________________________
Dev mailing list
d...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-dev

Reply via email to