Comment #9 on issue 34 by tim.schaub: Repeated section should iterate over
dictionaries and have special variables $name and $value
http://code.google.com/p/json-template/issues/detail?id=34
Right, so at least you notice the redundancy. No reason to reserve words
that are
redundant (this just forces more special processing of data structures that
may
contain reserved words).
I imagine you'd also admit that there is symmetry among the following:
Python:
for name in obj:
JavaScript:
for (var name in obj) {
Template:
{.repeated name obj}
I think most would argue that "for name in obj" is more intuitive
than "repeated foo
bar," and personally, I don't see how "section" adds any clarity to the
syntax.
Given that you have chosen the word "repeated", I was only trying to
propose some
logic for iterating over object members that would fit what people expect.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JSON
Template" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/json-template?hl=en
-~----------~----~----~----~------~----~------~--~---