Coin Considerations

Stephen Colebourne scolebourne at
Sat Mar 14 07:25:33 PDT 2009

Reinier Zwitserloot wrote:
> So what proposals are still fermenting in the minds of coin  
> contributors? Inspired by the recent discussion between Joe D'Arcy and  
> Mark Mahieu that people are possibly thinking someone else will be  
> proposing it.

* For-each loop for Maps, based on

for (String str, Integer val : map) {

* Iteration control in For-Each loops, based on

for (String str : list : it) {

Abstract enums would be extremely useful, but are probably too big -

I also thought List comprehensions might come up (not by me) -

 > - factory interfaces (an interface to describe constructors and
 > static methods). I've got a simple way to do it, but I don't think
 > its simple enough for coin.

See static implements. And yes, its a great 
idea, but too complex for Coin.

public class Foo implements static Iterable {
   public static Iterator iterator() {...}


More information about the coin-dev mailing list