Hi,
the syntax above is ambiguous, because the compiler doesn't know whether you're declaring a function (named TextSpan with a tuple as an argument) or whether you're decomposing a value. This is probably the reason why this syntax was deprecated. You can correct it easily by adding additional parentheses:

1
2
3
4
5
 
let StartOf e = let (TextSpan(s,_)) = e in s

// .. and you can even write:
let StartOf(TextSpan(s,_)) = s
By on 12/18/2008 2:37 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