-
Notifications
You must be signed in to change notification settings - Fork 88
Switch from BatEnum to Seq
#1443
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
Conversation
|
What is still missing here? |
A new batteries release would allot switching many |
|
Batteries 3.9.0 has now been released, so that should allow porting some of the previously problematic places as well. |
6388252 to
fe0608d
Compare
|
There's now a conflict with PR #1623 which added a component to |
|
@karoliineh: Is this now ready for review? |
Yes |
|
Should we add semgrep rules to prevent adding new code that uses |
Yes, although I just tried and after these changes the rule still seems to find remaining instances. |
A try on switching to the more standard
Seq.tinEnuminstances where possible as proposed in #1437Some things that I noticed:
Enum.cartesian_productis calledproductinSeqEnum.uncombineis calledunzip(orsplit) inSeqEnum.foldis calledfold_leftinSeqEnum.uniqinSeqto_seqinBatHashtblto_seq_keysinBatHashtblas in the Ocaml standard libraryHashtblTODO
Seqfunctions are that new. (Bump OCaml lower bound to 4.14 #1448)