You can also use '``' to use invalid identifier names. For example:

let ``Even?`` x = x % 2 = 0
printfn "Even? 4 = %A" (``Even?`` 4);;

By on 4/30/2008 8:18 AM ()

Yes, it can support them, but probably not as you would like. F# follows C# in allowing unicode escape characters in identifiers. So you can write:

1
let contains\u021F = List.exists

Also characters can be used to define custom operators where appropriate:

1
let (|?) = List.exists

Cheers,
Rob

By on 4/30/2008 12:50 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