This post originated from an RSS feed registered with Java Buzz
by Bernard Choi.
Original Post: JSR 201: Enhanced for loops
Feed Title: Bernard Choi
Feed URL: http://bchoi.livejournal.com/data/rss
Feed Description: Bernard Choi - LiveJournal.com
I guess the experts would have considered this, but I would like to ask, what are the considerations of having
(1) for (Item i : c) over
(2) foreach (Item i : c) or even
(3) foreach (Item i in c) ?
I just feel (1) smells. It doesn't read well. Overloading "for" doesn't feel like a good idea. Since there'll already be changes, might as well do a good job.