"for P x in ..." is an incomplete pattern. You will have got a deprecation warning for this prior to 1.9.6, saying that the feature is deprecated and incomplete patterns will give exceptions when used in for loops.

This deprecated feature was removed in 1.9.6, and you do now get the MatchFailureException.

This feature was removed to make "for P x in ..." consistent and symmetric for all the places this occurs in the language. Having it silently skip elements for sequence expressions alone made some code samples cuter but was too subtle.

Thanks

Don

By on 9/29/2008 8:00 AM ()
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