Hide this comment

Yes, that grammatical form was removed back in one of the betas (I can't find mention of it in the release notes for Beta1 or Beta2 though). It was just shorthand for "do yield!" in compact sequence expressions, so your fix is correct.

By on 7/1/2010 2:33 PM ()Reply
Hide this comment

thanks.

I wonder why it was removed

By on 7/1/2010 2:49 PM ()Reply
Hide this comment

I would guess that is was removed at the same time as the shorthand

1
[for item in ls when item > 10 -> item]

was removed, leaving you with

1
[for item in ls do if item > 10 then yield item]

As for the reason, I'm curious about it too.

By on 7/1/2010 3:24 PM ()Reply
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper

Logging in...