I suggest we ...

7 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Robert Nielsen shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Hater Dabber commented  ·   ·  Flag as inappropriate

        I can't believe this feature is not in F# yet. It would be so useful for intentionally incomplete matches.

      • Mark Seemann commented  ·   ·  Flag as inappropriate

        In C#, this feature exists, and has the following form:

        #pragma warning disable 618
        code...
        #pragma warning enable 618

        This enables you to suppress specific compiler warnings locally, which is quite important for evolving APIs: sometimes you need to deprecate a particular API (function, type), but keep it around for backwards compatibility. This means that your own code may still need to use the deprecated code for a while longer (for e.g. unit tests), so it'd be nice to enable that scenario without suppressing all other warnings.

      F# Language

      Feedback and Knowledge Base