scalawithcats / scala-with-cats

Source code for Scala with Cats
http://underscore.io/books/scala-with-cats
396 stars 133 forks source link

Validated type section is not present in Chapter 6 #223

Open nathanmbrown opened 1 year ago

nathanmbrown commented 1 year ago

In the generated book there are references in Chapter 4 for the Validated type that will be introduced in Chapter 6, and it is also mentioned in the Chapter 6 summary. However, the section for Validated seems to be omitted from the book. I can see the source page here however : https://github.com/scalawithcats/scala-with-cats/blob/develop/src/pages/applicatives/validated.md

williamdemeo commented 1 year ago

It looks like the section on Validated may have been (accidentally?) removed during this commit.

davegurnell commented 1 year ago

Good spot! We replaced that section with one on Parallel. You can accumulate errors directly using Either without switching to Validated using that type class. You tend to get simpler code compared to switching back and forth between Either and Validated.

--- original message --- On November 30, 2022 at 3:05 PM GMT @.*** wrote:

It looks like the section on Validated may have been (accidentally?) removed during this commit.

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: @.***> --- end of original message ---

nathanmbrown commented 1 year ago

Thanks for the clarification. Just to note that the Case Study on Validation seems to assume pre-knowledge of the Validated type so it might be good to integrate some of that section into the case study. Or Utilise Parallel in the case study instead.

noelwelsh commented 1 year ago

Yes, I think we'd eventually like to rewrite all of that content.