Skip to content

Conversation

DedSec256
Copy link
Contributor

@DedSec256 DedSec256 commented Aug 27, 2025

seq is the standard way of working with enumerations in F#. It is concise and does not require separate opens in the code. For a wide variety of standard types there are F# global abbreviations that are used by default during analysis. However, for one of the most popular types, the more verbose IEnumerable is still used:

image

This PR suggests importing IEnumerable as seq how it is done for other F# abbreviations of standard types.

Copy link
Contributor

github-actions bot commented Aug 27, 2025

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/10.0.100.md

@DedSec256 DedSec256 force-pushed the ber.a/formatIEnumerable branch from ddb063e to b3c5a23 Compare September 8, 2025 16:36
@DedSec256 DedSec256 force-pushed the ber.a/formatIEnumerable branch 2 times, most recently from 8bdcfe6 to c550c88 Compare September 10, 2025 20:02
@DedSec256 DedSec256 changed the title Format library types as F# abbreviations (Experiment/wip) Import IEnumerable as F# abbreviation Sep 15, 2025
@DedSec256 DedSec256 changed the title Import IEnumerable as F# abbreviation Import IEnumerable as seq Sep 15, 2025
@DedSec256 DedSec256 force-pushed the ber.a/formatIEnumerable branch from 7b0330f to 827807b Compare September 15, 2025 22:11
@DedSec256 DedSec256 marked this pull request as ready for review September 15, 2025 23:10
@DedSec256 DedSec256 requested a review from a team as a code owner September 15, 2025 23:10
@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Sep 16, 2025
@T-Gro T-Gro enabled auto-merge (squash) September 16, 2025 11:15
@T-Gro T-Gro merged commit 9fadb2e into dotnet:main Sep 16, 2025
38 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in F# Compiler and Tooling Sep 16, 2025
@DedSec256 DedSec256 deleted the ber.a/formatIEnumerable branch September 16, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants