-
Notifications
You must be signed in to change notification settings - Fork 21
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
Deprecate tupleNZipped operations #11041
Comments
@julienrf does this mean that all of these are deprecated?
|
And of course, the conversion that enables |
ALL THE THINGS |
For now I have not deprecated the above 4 classes, just the implicit conversions, but will if that's what's wanted. |
direct usages of these classes are almost certainly exceedingly rare or nonexistent, but regardless, I don't see a downside to deprecating them |
anyway deprecating them will help us remember to delete them later |
Butting in a bit late, for sure, but what is the reasoning behind deprecating |
good question! I don't remember all the details, but we've all (most of us?) had a pretty dim opinion of as best I can recall off the top of my head,
if you search for maybe @julienrf has something to add; the original ticket (scala/collection-strawman#221) gives the impression of being the product of in-person discussion |
FWIW, if you're using Cats the parallel applicative instances for list-like types have zipping behavior, which is a lot like the old @ (List(1,2,3), List("a", "b"), List(true, false)).parTupled
res6: List[(Int, String, Boolean)] = List((1, "a", true), (2, "b", false))
@ (List(1,2,3), List("a", "b"), List(true, false)).parMapN((n, s, b) => s"$n $s $b")
res7: List[String] = List("1 a true", "2 b false") |
Thank you for the explanations, and the alternatives available at cats. The reasoning behind having a cleaner design makes sense indeed. Regarding the familiarity question, from a user point of view I still think that having something like Then again, maybe the deprecation and lack of such methods is deliberate in discouraging such constructions. |
These operations have been replaced by
lazyZip
:We should deprecate the implicit conversion that makes the
zipped
operation available.The text was updated successfully, but these errors were encountered: