Skip to content

Use FSharp.Core implementations for old functions that were adopted there - #488

Merged
wallymathieu merged 17 commits into
masterfrom
osk/fsharp-list
Nov 8, 2022
Merged

wallymathieu merged 17 commits into
masterfrom
osk/fsharp-list

Conversation

@wallymathieu

@wallymathieu wallymathieu commented Aug 28, 2022 •

Copy link
Copy Markdown
Member
  • updateAt from F# Core 6 vs setAt
  • Option module (nothing to update)
  • List.singleton // check if it worth linking to the fsharp.core one, in anycase copy type annotations and XML contents
  • List.skip
  • List.take
  • List.removeAt (dropAt ? , deleteAt ? )
  • Map.values // but it returns an ICollection
  • Map.keys // but it returns an ICollection
  • Result.result and Result.throw should be deprecated in favor of Result.Ok and Result.Error
  • Seq.foldBack
  • Seq.replicate
  • Seq.removeAt same note as List.removeAt
  • Result.defaultValue
  • Result.defaultWith

@gusty
gusty force-pushed the master branch 2 times, most recently from 32f5c4a to f2d1afd Compare August 30, 2022 17:21
@wallymathieu
wallymathieu marked this pull request as ready for review September 7, 2022 05:03
@wallymathieu
wallymathieu requested a review from gusty September 7, 2022 05:03

@gusty gusty left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we extend the scope of this PR beyond List ?
Let's include Array and I think there's stuff at Option, Result and Nullable.
I propose to apply it to all functions that were promoted to F# core.

Comment thread src/FSharpPlus/Extensions/List.fs Resolved
Comment thread src/FSharpPlus/Extensions/List.fs Resolved
Comment thread src/FSharpPlus/Extensions/List.fs Resolved
@wallymathieu

Copy link
Copy Markdown
Member Author

What worries me is that the tests are taking significantly longer to complete on this branch.

@wallymathieu wallymathieu mentioned this pull request Sep 11, 2022
@gusty
gusty force-pushed the master branch 4 times, most recently from 5c69948 to 9ca5706 Compare September 19, 2022 15:20
@wallymathieu
wallymathieu force-pushed the osk/fsharp-list branch 2 times, most recently from ed79009 to 61e4310 Compare October 1, 2022 05:52
@gusty gusty changed the title Use FSharp.Collections.List instead Use FSharp.Core implementations for old functions that were adopted there Oct 1, 2022
@wallymathieu

Copy link
Copy Markdown
Member Author

I don't seem to be able to find Seq.removeAt @gusty ?

@wallymathieu
wallymathieu requested a review from gusty October 29, 2022 16:38
@gusty

gusty commented Oct 29, 2022

Copy link
Copy Markdown
Member

Yes, probably doesn't exist.

@gusty gusty left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, good job.
Small text adjustments, would it be possible to replace FSharpCore with FSharp.Core or is there any issue in having the . inside XML comments?

Also overrides sounds worst than what actually is, maybe it's better to say "it's being redirected to", or is an alias of.

Comment thread src/FSharpPlus/Extensions/List.fs Resolved
Comment thread src/FSharpPlus/Extensions/List.fs Resolved
wallymathieu and others added 3 commits October 30, 2022 11:06
Co-authored-by: Gustavo Leon <1261319+gusty@users.noreply.github.com>
Co-authored-by: Gustavo Leon <1261319+gusty@users.noreply.github.com>
@wallymathieu

Copy link
Copy Markdown
Member Author

I think it's fine to simply mention that we will remove the F#+ version in the next major release.

@wallymathieu
wallymathieu merged commit 25be4e7 into master Nov 8, 2022
@wallymathieu
wallymathieu deleted the osk/fsharp-list branch November 8, 2022 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants