for own(...) loop (spin-off from Re:, hasOwnProperty(), and inheritance)

Brendan Eich brendan at
Tue Nov 8 14:39:29 PST 2011

On Nov 8, 2011, at 1:48 PM, Claus Reinke wrote:

>> for own (i in o) {
>>   body
>> }
> What happened to @iter.keys and 'for (key of keys) {}'?

Still there, but write it out fully, to compare to the cited text:

  import keys from "@iter";
  for (i of keys(o)) {

Unless we default-import a standard prelude, this is a bit much compared to add own as a modifier after for in for/in (not for/of) loops.


> Claus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list