17 hours ago, vesuvius wrote
@Bass:LINQ-to-Objects. Some people seem to thing it looks fancy in code (I guess?), but I don't think it makes the code any clearer then a simple foreach loop (which tends to be faster anyway). See above also.
I have to say I think code is eminently more readable when you have a .Any(a=>) or .All(a=>) or .Skip(a=>). IF you work with low level image or video processing, you typically end up with several nested for loops and a state machine (it is never a simple for loop) just to express the standard sequence operators. When you add this code plus the complex maths and protocols in the code anyway, anything that increases readability is a Godsend.
That is singularly the greatest addition to C# in my opinion. If people have issues with performance then use C++ but I use them in pretty hardcode situations, where the customer complains abaout any slowness, and they are still quick
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.