Skip to content

Support #define in Fsharp #2918

@Lanayx

Description

@Lanayx

Is your feature request related to a problem? Please describe.
I'd like to use FSharp assert function in interactive notebook, which requires DEBUG compiler option to be enabled. However by default it's not enabled. C# provides #define statement to accomplish the goal, while F# doesn't

Describe the solution you'd like
I'd like to use #define DEBUG in F# as well similarly to C#

Describe alternatives you've considered
I've tried to pass it to dotnet interactive tool as argument, but it seems to be unsupported as well. So, it seems that assert is unusable witn dotnet interactive notebook

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions