-
Notifications
You must be signed in to change notification settings - Fork 301
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
Support [<InlineIfLambda>]
#3431
Comments
To give a bit of context:
I am trying to work on a CE DSL for JSX and I feel like if |
I think it's possible, although I'm not sure how much work it will involve. This would require "conditional" inlines and check the argument to decide if the function must be inlined or not. In any case, be careful when using CEs to design a DSL. I've received reports that when used in a large project compilation starts to get really slow, see: dotnet/fsharp#14429 |
Rah that's really unfortunate ... thank you for letting me know of this problem. I thin I will still explore that direction but probably keep it as a POC depending on the situation. |
Description
If I understand correctly this news: https://learn.microsoft.com/en-us/dotnet/fsharp/whats-new/fsharp-6#inlineiflambda
This code:
should be equivalent to
However, when looking at the generated JS it seems like
[<InlineIfLambda>]
does nothing:Expected and actual results
Should generates something like that I think:
Related information
The text was updated successfully, but these errors were encountered: