I am using F # 4.0 / VS-2015
It works great
[<Measure>] type percent let x1 = 100<percent>
but that would be better
[<Measure>] type % // Percent let x2 = 100<%> [<Measure>] type € // Euro let cost = 99.99<€>
Since% is used in F #, any other Unicode characters can be used. Some are allowed and some are not.
The question is, what are the limitations?
Knowing this, for other applications, searching for Unicode characters can be pre-filtered.
allowed
[<Measure>] type ᚖ // U+1696 [<Measure>] type ᕎ // U+154E [<Measure>] type ඖ // U+0D96 let x3 = 0<ඖ> let x4 = 50<ᕎ>
is not allowed
[<Measure>] type (%) // error FS0010: Unexpected prefix operator in type name. Expected infix operator, quote symbol or other token. [<Measure>] type % // error FS0010: Unexpected symbol '{0} in type name [<Measure>] type (﹪) // error FS0010: Unexpected character '﹪' in type name. Expected infix operator, quote symbol or other token. [<Measure>] type ﹪ // error FS0010: Unexpected character '﹪' in type name [<Measure>] type ﹪ // ﹪ U+FE6A [<Measure>] type ٪ // ٪ U+066A [<Measure>] type % // % U+0025 [<Measure>] type % // % U+FF05 [<Measure>] type ‰ // ‰ U+2030 promille [<Measure>] type € // € U+20AC [<Measure>] type ≷ // ≷ U+2277 [<Measure>] type _%
source share