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

Include lambda shorthand notation in "Lambda Expressions: The fun Keyword" page #43675

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
Co-authored-by: Tomas Grosup <tomasgrosup@microsoft.com>
vzarytovskii and others added 4 commits November 22, 2024 20:38
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
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