|
|
|
|
|
by jashkenas
5577 days ago
|
|
To explain the reason for the "in/of" distinction... "for item in list" vs "for key, value of object" is an unfortunate necessary evil. It would be great to use the same keyword, "in", for both types of loop, but I'm afraid there's no way for us to know at compile time if "list" or "object" is really an array, or really an object. |
|