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

Add a code fix for adding missing seq before {…} #1330

Open
4 tasks done
edgarfgp opened this issue Dec 18, 2024 · 0 comments · May be fixed by #1333
Open
4 tasks done

Add a code fix for adding missing seq before {…} #1330

edgarfgp opened this issue Dec 18, 2024 · 0 comments · May be fixed by #1333

Comments

@edgarfgp
Copy link
Contributor

Details

I propose we add a code fix for adding missing seq before {…}. This is related to a language suggestion [Deprecate { start..finish } and { start..step..finish }] (fsharp/fslang-suggestions#1033) implemented in dotnet/fsharp#17772 which is currently in preview

Before

let xs = { 1..10 }

let xs = { 1; 10 }

let xs = id { 1..10 }

let xs = id { 1; 10 }

let xs =
    id {
        1..10
    }

let xs =
    id {
        1; 10
    }

After

let xs = seq { 1..10 }

let xs = seq { 1; 10 }

let xs = id (seq { 1..10 })

let xs = id (seq { 1; 10 })

let xs =
    id (seq {
        1..10
    })

let xs =
    id (seq {
        1; 10
    })

Checklist

  • I have looked through existing issues to make sure that this feature has not been requested before
  • I have provided a descriptive title for this issue
  • I am aware that even valid feature requests may be rejected if they do not align with the project's goals
  • I or my company would be willing to contribute this feature
@edgarfgp edgarfgp changed the title Add a code fix for adding missing seq before `{…} Add a code fix for adding missing seq before {…} Dec 19, 2024
@edgarfgp edgarfgp linked a pull request Dec 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant