Skip to content

Support ValueOption + Struct attribute as optional parameter - #18098

Merged
T-Gro merged 17 commits into
dotnet:mainfrom
vzarytovskii:optional-parameters-valueoption
Dec 20, 2024
Merged

Support ValueOption + Struct attribute as optional parameter#18098
T-Gro merged 17 commits into
dotnet:mainfrom
vzarytovskii:optional-parameters-valueoption

Conversation

@vzarytovskii

@vzarytovskiivzarytovskii commented Dec 2, 2024

Copy link
Copy Markdown
Member

Description

Implements fsharp/fslang-suggestions#1136 - (fsharp/fslang-suggestions#1136 (comment))

Checklist

  • Test cases added

I'm not 100% happy with working with attributes as synattributes (though can live with it), though we do it in the graph checking already, but alternative would be abstract option in the compiler and then make a decision during codegen. This will complicate overall checking quite a bit.

@vzarytovskii
vzarytovskii requested a review from a team as a code ownerDecember 2, 2024 15:38
@github-actions

github-actionsBot commented Dec 2, 2024

Copy link
Copy Markdown
Contributor

❗ Release notes required


✅ Found changes and release notes in following paths:

Change pathRelease notes pathDescription
src/FSharp.Coredocs/release-notes/.FSharp.Core/9.0.200.md
LanguageFeatures.fsidocs/release-notes/.Language/preview.md

Comment threadsrc/Compiler/Checking/CheckPatterns.fs Outdated
Comment threadsrc/Compiler/Checking/CheckPatterns.fs Outdated
Comment threadsrc/Compiler/Checking/CheckPatterns.fs Outdated
Comment threadsrc/Compiler/Checking/CheckPatterns.fs Outdated
Comment threadsrc/FSharp.Core/prim-types.fs
@vzarytovskii

Copy link
Copy Markdown
MemberAuthor

@T-Gro@KevinRansom@0101 this is ready

Comment threadsrc/Compiler/Checking/CheckDeclarations.fs
Comment threadsrc/Compiler/Checking/MethodCalls.fs Outdated
Comment threadsrc/Compiler/Checking/CheckPatterns.fs Outdated
Comment threadsrc/Compiler/Checking/CheckPatterns.fs Outdated
Comment threadsrc/Compiler/Checking/CheckPatterns.fs Outdated

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot reviewed 13 out of 30 changed files in this pull request and generated no suggestions.

Files not reviewed (17)
  • src/Compiler/Checking/CheckDeclarations.fs: Language not supported
  • src/Compiler/Checking/CheckPatterns.fs: Language not supported
  • src/Compiler/Checking/MethodCalls.fs: Language not supported
  • src/Compiler/FSComp.txt: Language not supported
  • src/Compiler/Facilities/LanguageFeatures.fs: Language not supported
  • src/Compiler/Facilities/LanguageFeatures.fsi: Language not supported
  • src/Compiler/TypedTree/TypedTreeOps.fs: Language not supported
  • src/Compiler/TypedTree/TypedTreeOps.fsi: Language not supported
  • src/Compiler/xlf/FSComp.txt.cs.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.de.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.es.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.fr.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.it.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.ja.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.ko.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.pl.xlf: Language not supported
  • src/Compiler/xlf/FSComp.txt.pt-BR.xlf: Language not supported

@vzarytovskii

Copy link
Copy Markdown
MemberAuthor

@T-Gro I think I have addressed everything. If tests are passing, this is ready. Lemme know if I forgot anything.

 Co-authored-by: vzarytovskii <1260985+vzarytovskii@users.noreply.github.com>
@dotnetdotnet deleted a comment from github-actionsBotDec 18, 2024
Sign up for freeto 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.

5 participants

@vzarytovskii@KevinRansom@edgarfgp@T-Gro