On Tue, Jul 13, 2010 at 17:44, Lyle <[email protected]> wrote: > On Tue, Jul 13, 2010 at 8:32 AM, Wildam Martin <[email protected]> wrote: >> BTW: Java already allows this: >> for (Object object : list) >> { >> }
> This just illustrates the point I'm trying to make. So you're okay > with the ':' special character but the '_' in the Scala example > requires too much explanation? If you don't understand a map function > or a for loop, neither is going to be very readable, but at that point > the deficiency isn't within the language syntax. Ooops - I noticed that I didn't even consider the ":" as a special character. You are right, for one coming from a functional background might be the other way round. In VB it is "For Each object In list" - and this can be understood even by a non-programmer. That's what I meant: If e.g. the project manager is sitting next to you and asking about technical details, he will understand better. - Not that this is a regular case, but everyone is talking about agile and then readability becomes even more important. -- Martin Wildam -- 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.
