Skip to content

Conversation

@BartoszKlonowski
Copy link
Contributor

@BartoszKlonowski BartoszKlonowski commented Nov 20, 2024

This pull request closes #41858

It adds the mention of the alternate, shorthand notation just below the "standard" one in the syntax section,
and also shows both notations in action in "Using Lambda Expressions" section.

Note: as the shorthand notation can only be used for property access, method calls and indexing, I couldn't use the existing implementation and had to refactor it to present something that will use the property accessing, but won't be more complicated.


Internal previews

📄 File 🔗 Preview link
docs/fsharp/language-reference/functions/lambda-expressions-the-fun-keyword.md Lambda Expressions: The fun Keyword (F#)

@dotnetrepoman dotnetrepoman bot added this to the November 2024 milestone Nov 20, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label Nov 20, 2024
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @BartoszKlonowski

One small grammar nit, and I'll :shipit:

@BillWagner BillWagner enabled auto-merge (squash) November 25, 2024 14:53
@BillWagner BillWagner merged commit 2192711 into dotnet:main Nov 25, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fsharp/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include shorthand notation

5 participants