Finding a "safety syntax" for classes

Kevin Smith khs4473 at gmail.com
Sun Mar 25 06:06:07 PDT 2012


Regarding Nadav's point, here's a real world use case:

  https://github.com/khs4473/JiaDOM/blob/master/src/DOMSet.js#L28-44

The function "_manip" returns a function that is parameterized by the input
string.

  https://github.com/khs4473/JiaDOM/blob/master/src/DOMSet.js#L387-403

In the "class" definition, the "_manip" function is used to concisely
generate a set of methods.

kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120325/9ce7cbb1/attachment.html>


More information about the es-discuss mailing list