Comment #6 on issue 34 by [email protected]: Repeated section should iterate  
over dictionaries and have special variables $name and $value
http://code.google.com/p/json-template/issues/detail?id=34

OK I see the proposal now.  It is clever in repurposing the second word for  
the
index.  And there is some symmetry in that an array index can be thought of  
as a key.
  That is, an array is a special case of an associative array, where the  
keys are
contiguous integers.

Main problem: {.repeated index posts}  just reads badly.  It has poor  
grammar.

{.repeated section posts} doesn't read badly to me.  I don't think  
of "section" as an
"extra" word, any more than "static" is an extra word "static void foo()".   
A
repeated section is a variant of a section.

The syntax follows Python's "read the words" style:

'for word in words'

better than

for (word : words)    (java)


[x**2 for x in 1,2,3,4]

better than

[x**2 | x <- [1,2,3,4]]  (haskell)


x = 3 if y > 2 else 5

better than

x = y > 2 ? 3 : 5;



--
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to