This page is no longer maintained — Please continue to the home page at www.scala-lang.org

scala.collection.jcl.Conversions suggestion

1 reply
thebugslayer
Joined: 2008-08-20,
User offline. Last seen 3 years 23 weeks ago.
Hi,

Since we are already providing convenient converters, can we add java.util.Enumeration<T> and java.util.Iterator<T> to the Converstions implicit list? I find this useful when working with java libraries.

Also while we are on the topic, is there reason why scala.collection.jcl.IterableWrapper accepts java.util.Collection as underlying object and not the java.util.Iterable as the class name suggested? This is confusing to user.

Thanks,
Zemian
--
http://www.jroller.com/thebugslayer

Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.
Re: scala.collection.jcl.Conversions suggestion
Java 1.4 doesn't have Iterable, and Scala supports compatibility with it.  This is due to change in Scala 2.8.0.

2008/12/20 Zemian Deng <thebugslayer@gmail.com>
Hi,

Since we are already providing convenient converters, can we add java.util.Enumeration<T> and java.util.Iterator<T> to the Converstions implicit list? I find this useful when working with java libraries.

Also while we are on the topic, is there reason why scala.collection.jcl.IterableWrapper accepts java.util.Collection as underlying object and not the java.util.Iterable as the class name suggested? This is confusing to user.

Thanks,
Zemian
--
http://www.jroller.com/thebugslayer


Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland