3 ms·
Wow, that just looks hideous... at first I was hoping this was some kind of Java preprocessor for linq constructs... but it's just plain ugly.. it's even worse
by tracker1 11y ago
Wow, that just looks hideous... at first I was hoping this was some kind of Java preprocessor for linq constructs... but it's just plain ugly.. it's even worse than the method chaining you can do in C# with lambdas, which I prefer over linq syntax...
var result = someEnumerable.Select(x => x.Bar < 5).ToList()
Still a lot cleaner than the type specific mess in the examples... I think sticking to for-loops is probably cleaner than that mess.
I don't mean to be critical here, it's just I don't think it's really any better than without the "LINQ" for Java in this case.