Skip to content

Conversation

@shethaadit
Copy link
Contributor

@shethaadit shethaadit commented Jan 12, 2025

Summary

PR Description

The current F# style guide lacks explicit mention of the seq type in the exceptions list for postfix notation usage. This creates ambiguity since seq is consistently used in postfix notation across FSharp.Core functions and the seq { } computation expression.

This PR:

  • Updates the F# style guide section on "prefer prefix syntax for generics" to include seq as an exception, using the postfix form (int seq).
  • Maintains alignment with existing practices in F# and the style of similar aliases like list and option.

Fixes #40681


Internal previews

📄 File 🔗 Preview link
docs/fsharp/style-guide/formatting.md F# code formatting guidelines

@dotnetrepoman dotnetrepoman bot added this to the January 2025 milestone Jan 12, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-fsharp/svc community-contribution Indicates PR is created by someone from the .NET community. labels Jan 12, 2025
Copy link
Contributor

@psfinaki psfinaki left a comment

Choose a reason for hiding this comment

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

Correct, thank you!

@BillWagner
Copy link
Member

#44229 should fix the build issues. I'll merge once that's clean

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 @shethaadit

I'll merge this shortly.

@BillWagner
Copy link
Member

closing and reopening for a fresh build

@BillWagner BillWagner closed this Jan 13, 2025
@BillWagner BillWagner reopened this Jan 13, 2025
@BillWagner BillWagner merged commit afb7eca into dotnet:main Jan 13, 2025
17 of 18 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.

Clarify postfix/prefix notation for seq

3 participants