fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Allow typed bindings(and!) in CE without parentheses

Open edgarfgp opened this issue 7 months ago • 1 comments

Description

Allow computation expression (CE) bindings (let!, use!, and!) to accept type annotations without requiring parentheses.

Continuation of https://github.com/dotnet/fsharp/pull/18508 Implements RFC FS-1329: https://github.com/fsharp/fslang-design/pull/802

Checklist

  • [x] Test cases added
  • [x] Release notes entry updated

edgarfgp avatar Jun 10 '25 20:06 edgarfgp

:heavy_exclamation_mark: Release notes required


:white_check_mark: 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
LanguageFeatures.fsi docs/release-notes/.Language/preview.md

github-actions[bot] avatar Jun 10 '25 20:06 github-actions[bot]

/azp run

edgarfgp avatar Jul 12 '25 03:07 edgarfgp

Commenter does not have sufficient privileges for PR 18682 in repo dotnet/fsharp

azure-pipelines[bot] avatar Jul 12 '25 03:07 azure-pipelines[bot]

This is ready @T-Gro

edgarfgp avatar Jul 28 '25 11:07 edgarfgp

Thanks @edgarfgp for getting this in. The resulting parser code is more unified and better readable across the similar syntactical constructs 👍 .

T-Gro avatar Jul 29 '25 07:07 T-Gro

/azn run

edgarfgp avatar Jul 29 '25 08:07 edgarfgp

Thanks @T-Gro. Can you please re-run the CI ?. Don't want to close a re-open the PR.

edgarfgp avatar Jul 29 '25 08:07 edgarfgp

/azp run

T-Gro avatar Jul 29 '25 09:07 T-Gro

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Jul 29 '25 09:07 azure-pipelines[bot]