I was just watching a video on MSDN Channel 9 which can be found here, about some of the new features in Visual Basic 10. Now I like most of the new features, some of which have been long awaited(auto properties and Collection Initializers), one that caught my eye was the multiline lambdas like in C#.
In the video he used an example like this:
Dim scores = {10,20,30,40,50}
Dim thread as new Threading.Thread(Sub()
For Each o in scores
console.writeline(o)
Next
End Sub)
Now I like VB in all it verbosity but I'm just a bit worried that writing sub...end sub inline could get a bit messy, I can see some merit in inlining when you are writing C# when you only have to use something like c => {....} and you can cut out a lot of code.
What are your throughts of multiline lambdas in VB?
Would you find them useful and where?