+1 for newer style.

+1000 for *much* cleaner styles allowed by Scala and other JVM
alternatives. ;)

On Wed, Nov 9, 2011 at 3:30 AM, Aliaksandr Autayeu
<[email protected]>wrote:

> Dear all,
>
> I would like to ask your opinion: what do you think about "for-each" loops
> and old-style indexed loops. In my projects I have found that for-each
> loops have several advantages:
>
> 1) code readability - code is easier to read
> 2) less code - and fewer possibilities for mistakes
> 3) eases refactorings - one have to change less code during future changes
>
> There are many instances in OpenNLP where new style, shorter and cleaner
> loops can be used. I might provide a patch. What do you think?
>
> Aliaksandr
>



-- 
Jason Baldridge
Associate Professor, Department of Linguistics
The University of Texas at Austin
http://www.jasonbaldridge.com
http://twitter.com/jasonbaldridge

Reply via email to