-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Description
Idea 6079342: Allow extended #if grammar
Status : completed
Submitted by Don Syme on 6/20/2014 12:00:00 AM
6 votes
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
Archived Uservoice Comments