with

Russell Leggett russell.leggett at gmail.com
Thu Nov 17 00:10:14 PST 2011


> since in this example I only used the object literal variant. (The function, array, etc variants do things that Object.create can't do.)

I think this is ultimately the downfall of 'with' as a complete replacement for <| or extends. It works pretty well on objects but no others.

    SomeFunc with function(){...}

Does not read nearly as well.

- Russ


More information about the es-discuss mailing list