[E-Lang] An Attempted Restatement of Hydro's Semantics
Tyler Close
tclose@oilspace.com
Tue, 03 Apr 2001 19:55:35 +0100
At 11:42 AM 4/3/01 -0700, Marc Stiegler wrote:
> > Thinking about the last time I used indexes in Java:
> >
> > You have two lists {"Mark","Mark","Tyler","Ralph"} and
> > {"Stiegler","Miller","Close","Hartley"} and you want to print
> > Mark Stiegler
> > Mark Miller
> > Tyler Close
> > Ralph Hartley
>
>A very cool example: effectively what you need to do is walk 2 lists in
>parallel, which even the E for...loop will not do for you automatically. I
>have not used this pattern recently, but I have used it. Unless someone has
>another clever solution for this, I find it compelling.
And hence the existence of Source#inspectWith()...
This particular example really isn't all that great since the data
should've been stored in a map. The general problem does exist though, so
that's why inspectWith is in the interface. You are still scuppered if you
want to do more than 2 at a time. I haven't ever needed to.
This probably isn't common enough to require syntax support.
Tyler