scala.collection.jcl.Conversions suggestion

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

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 [at] gmail [dot] 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 © 2013 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland