Skip to content

Question about operators starting with ? #639

@mlaily

Description

@mlaily

Hi,

I noticed that the latest FSharp Spec I could find (4.1) indicates in section 3.7 Symbolic Operators that

Only the operators ? and ?<- may start with ?.

The language docs about operators were updated in 2016 to mention this (dotnet/docs#1291), but there is also documentation about nullable operators that seems in direct contradiction with this statement.

The current compiler does allow custom operators starting with ? other than just ? or ?<-.

I didn't find a more up-to-date RFC in the fslang repo on this topic.

Did I miss something? What should I believe? Should the docs or/and the specs be changed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions