On Tuesday, March 29, 2011 1:27:01 PM UTC+2, KWright wrote:
>
> for(String path: Paths) {
>     final File file = new File(path);
>     final Widget widget = loadWidget(file)
>     widgetBuilder.add(widget)
> }
>
>  

> val widgets = paths map { path => loadWidget(new File(path)) }
>
>
>
One of my pet peeves is language fanboys sneaking in irrelevant 
complications in the language they don't like. Which you've done here. If we 
take scala as a cue for how language should be styled, we could just as 
easily write:

for (String path : paths) widgetBuilder.add(loadWidget(new File(path));

which is barely longer than the scala example and arguably simpler.

As to the actual intent of your message - Cedric said all that needs to be 
said.
 

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to