|
|
|
|
|
by vidarh
4769 days ago
|
|
> Shouldn't they all be toys of the same type? It should be obvious that an array means "more than one of the same thing". Not any more "the same thing" than all being toys. C, C++, Java, Ruby, Javascript, PHP all let you stuff references to objects that are entirely different into arrays some way or other, and I'd be quire confident in claiming that the same is true for most languages in common use. > "W is for While: While there is food on your plate, you will sit there" - doesn't really describe what WHILE does? It describes exactly what WHILE does. Whether or not there is an operation that changes the condition within the loop is an entirely separate concern from the while construct. Anyone with a child will have experienced situations where the child most definitively will not keep eating, and what changes the condition is that a parent as an outside actor finally takes the food away, for example. |
|