Re: Picking property by attribute

2008-08-18 Thread Brendan Eich
On Aug 18, 2008, at 9:28 AM, Yuh-Ruey Chen wrote: > OK, with the advent of ES-Harmony, I have no clue whether the language > will support iterators (and maybe generators) We talked about these in Oslo. My notes say generators received favorable comments, with the thought from Mark Miller that t

Re: Picking property by attribute

2008-08-18 Thread Yuh-Ruey Chen
OK, with the advent of ES-Harmony, I have no clue whether the language will support iterators (and maybe generators) or catch-all methods. I know that namespaces are out. But assuming a pre-ES-Harmony mindset: My solution does have bugs: I forgot to filter the results of iter.next() in the next()

Re: Picking property by attribute

2008-08-17 Thread Ingvar von Schoultz
YR Chen wrote: > But the syntax you propose is redundant, since you can define a own() > method returning an iterator (for for...in) and a getOwn() method to do > the same thing. What people wanted so hotly was an object completely unpolluted by inheritance from Object. It should have no .toStri