Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow extended #if grammar #273

Closed
baronfel opened this issue Oct 20, 2016 · 0 comments
Closed

Allow extended #if grammar #273

baronfel opened this issue Oct 20, 2016 · 0 comments

Comments

@baronfel
Copy link
Contributor

baronfel commented Oct 20, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant