Set iterators

Axel Rauschmayer axel at
Tue Feb 14 19:45:02 PST 2012

FWIW: I like that you can expressly opt in to ordered iteration in Java, by using LinkedHashSet (which is a subclass of HashSet which implements the interface Set):

On Feb 15, 2012, at 4:32 , John Tamplin wrote:

> On Tue, Feb 14, 2012 at 10:13 PM, Brendan Eich <brendan at> wrote:
> Is this comparable with JS? Interop on the web is a harsh mistress. The C-Python vs. IronPython vs. PyPy vs. etc. situation is more of a "porting model" with one-way forks.
> Java seems comparable, in that compiled code is expected to run on different JVMs.  I'm not aware of any Java code that relies on a particular iteration order where it is unspecified in the API.
> -- 
> John A. Tamplin
> Software Engineer (GWT), Google
> _______________________________________________
> es-discuss mailing list
> es-discuss at

Dr. Axel Rauschmayer
axel at


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

More information about the es-discuss mailing list