Set iterators

Axel Rauschmayer axel at rauschma.de
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):
http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashSet.html


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

> On Tue, Feb 14, 2012 at 10:13 PM, Brendan Eich <brendan at mozilla.org> 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 mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120215/23aa5a82/attachment-0001.html>


More information about the es-discuss mailing list