Closed ASRagab closed 4 years ago
Good catch! Considering adapted args was deprecated, it's a good change! Thank you!
And yes, please add this to the scala-errata, appreciate it! (Perhaps in another PR?)
And yes, please add this to the scala-errata, appreciate it! (Perhaps in another PR?)
Will do. Just grabbing the commit hash.
You can link to this PR directly. I'm usually adding the commit hashes if some changes were made in master directly without a PR.
You can link to this PR directly. I'm usually adding the commit hashes if some changes were made in master directly without a PR.
Ah, makes sense, I'll do that.
Explicitly Tupling return in
prodToSum
method in Chapter 6Mostly because it will produce these warnings if "-Xlint:adapted-args" is turned on, and it makes more clear that
sumToProd
is the inverse function as it does tuple the pair in the pattern matchShould I wait for this to get merged in before updating the
errata
file?