On Friday 10 October 2014 19:39:05 Rick McGuire wrote: > Yeah, I considered something like that too, but it somehow feels wrong to > me. All of the other loop options are prepositions like TO, BY, FOR, OVER, > WHILE, and UNTIL. Using a noun like supplier just doesn't fit well with > the other options. Maybe we can do something like was done with USE ARG. > This was done this way so that the USE instruction could be reused for some > other type of operation that made sense. How about combining a preposition > with a keyword that identified what we are iterating over. There's a handy > list of prepositions here: > > https://www.englishclub.com/grammar/prepositions-list.htm > > FROM is one that is available, so something like > > do index, item from supplier expr > > would work, with the supplier indicating what sort of source we're looking > at. This can then be extended to other types of source if we wish, such as > > do index, item from array expr > > or > > do index, item from map expr > > We don't need to add anything additional now, but it's would be nice to go > with something that can be expanded on in the future. > > Rick
How about do index, item with supplier expr which is similar to parse expression with ... and reuses the 'with' keyword? Leslie -- A Caution to Everybody Consider the Auk; Becoming extinct because he forgot how to fly, and could only walk. Consider man, who may well become extinct Because he forgot how to walk and learned how to fly before he thinked. -- Ogden Nash ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://p.sf.net/sfu/Zoho _______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel