"We’ve been hard at work on an updated CTP of the LINQ work, and when you get it (no comment on dates at this point), you’ll notice several new things about the VB LINQ support. One the biggest is going to be the fact that, after trying all the Intellisense tricks we could think of, we’re throwing in the towel on Select/From and adopting the “Yoda style” From/Select syntax. As in:
Dim WACusts = _
From c In Customers _
Where c.State = "WA" _
Select c
instead of:Dim WACusts = _
Select c _
From c In Customers _
Where c.State = "WA"
..."
NO!
Okay, I’m over it...
In reading the post, the points make sense. Full/complete Intellisense IS much more important and being "SQL like."
Having the FROM statement first is pretty easy to wrap my brain around. But I do hope the Where and Select statements can be reversed.
Something like;
FROM Object
SELECT Value
WHERE Condition
Dim WACusts = _
From c In Customers _
Select c _
Where c.State =
"WA"
Then again, maybe this is already the way it is (hence the title, "From/Select") and I should just check out the next CTP...
(’TODO: Check out next LINQ CTP)
Technorati Tags: VB9, LINQ
No comments:
Post a Comment
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...