Rationale for Dict?

Brandon Benvie brandon at brandonbenvie.com
Tue Jan 8 13:06:52 PST 2013


The motivation for the @dict module is also better understood with a bit of
context. Until recently, entries, keys, and values lived in '@iter'. They
work on any object, creating an iterator from its properties. Recently the
three were moved to '@dict' along with @dict.dict being added. In @iter is
now zip and unzip which I haven't seen a description for, but I have a
guess at their intended functionality and have roughed it in here
https://github.com/Benvie/continuum/blob/gh-pages/engine/builtins/%40iter.js#L18
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130108/e9daee28/attachment.html>


More information about the es-discuss mailing list