Bill Baxter pisze:
I think the default should be to iterate over whatever 'in' looks at.


I was almost convinced, because that rule has a sense. But treating normal arrays and associative array has more sense to me.


fun (SomeObject object) {
foreach (element;object.arr1){ //normal, but how do I know at first look
//just do something with element                
}

foreach (element;object.arr2){ // assoc, but how do I know at first look
//just do something with element hopefully not index
}

Cheers
Piotrek

Reply via email to