Using keywords as identifiers in F#

Given section 3.4 of the F# 2.0 spec: Identifiers follow the specification below. Any sequence of characters that is enclosed in double-backtick marks (“ “), excluding newlines, tabs, and double-backtick pairs themselves, is treated as an identifier. I suspect you can put it in backticks: “private“ I haven’t tried it though.

F# keyword ‘Some’

Some is not a keyword. There is an option type however, which is a discriminated union containing two things: Some which holds a value of some type. None which represents lack of value. It’s defined as: type ‘a option = | None | Some of ‘a It acts kind of like a nullable type, where …

Read more