redefine.js - A Simplified ES5 Approach

Brendan Eich brendan at mozilla.com
Sun Jan 20 13:36:40 PST 2013


For defining properties, looks nice and concise. The first bit shows no 
win over Object.create, IMHO.

/be

Andrea Giammarchi wrote:
> and the blog entry 
> http://webreflection.blogspot.com/2013/01/redefinejs-simplified-es5-approach.html 
> then I swear, I won't bother anymore unless somebody will ask anything 
> or give some feedback :-)
>
> thanks
>
>
> On Sat, Jan 19, 2013 at 10:41 PM, Andrea Giammarchi 
> <andrea.giammarchi at gmail.com <mailto:andrea.giammarchi at gmail.com>> wrote:
>
>     OK, if you prefer a list of HOWTO that compares redefine.js and
>     ES5 approach, included problems with inheritance, here a more
>     technical face 2 face approach:
>     https://github.com/WebReflection/redefine/blob/master/HOWTO.md
>
>     Thanks in advance for any feedback or question about it.
>
>
>     On Sat, Jan 19, 2013 at 1:33 PM, Andrea Giammarchi
>     <andrea.giammarchi at gmail.com <mailto:andrea.giammarchi at gmail.com>>
>     wrote:
>
>         not only "Security Demands Simplicity", but development
>         demands simplicity too :-)
>
>         I don't remember who asked me to show a simplified approach to
>         ES5 descriptors, Object.create, defineProperty, and
>         defineProperties, but here a tiny library which aim is to make
>         developers life easier, the usage of defaults for grouped type
>         of descriptors, and the fact it does not break if some evil
>         code redefine some Object.prototype.writable/configurable
>         property in the global scope.
>
>         I'd appreciate any sort of feedback when and if you have time
>         and please do not hesitate to ask me more, if necessary, thanks.
>
>         https://github.com/WebReflection/redefine#redefinejs
>
>         Best Regards,
>             Andrea Giammarchi
>
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss


More information about the es-discuss mailing list