Skip to content

Allow extended #if grammar #273

@baronfel

Description

@baronfel

Allow extended #if grammar [6079342]

Submitted by Don Syme on 6/20/2014 12:00:00 AM
6 votes on UserVoice prior to migration

Allow an extended grammar for #if/#elif.

if expr

elif expr

with grammar:
expr =
| expr && expr
| expr || expr
| not expr
| (expr)
| IDENT
With usual precedences. The syntax !IDENT should also be parsed and interpreted as “not”, though a warning given that “not” should be used instead in F# code.
The implementation must also provide sufficient tests.

Response

** by fslang-admin on 1/21/2015 12:00:00 AM **

Completed for F# 4.0+ see dotnet/fsharp#55
Don Syme, F# Language Evolution

Original UserVoice Submission
Archived Uservoice Comments

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