Skip to content

Commit

Permalink
Adds Ole’s Correction to Episode 0004’s Code (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdev authored and mbrandonw committed Jan 9, 2019
1 parent 4a997c3 commit 644c723
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ import Foundation
// + Error
// + 1

// NB: It was brought to our attention by one of our viewers, [Ole Begemann](https://twitter.com/olebegemann),
// that it is in fact possible for `URLResponse` and `Error` to be non-`nil` at the same time.
// He wrote a great [blog post](https://oleb.net/blog/2018/03/making-illegal-states-unrepresentable/) about this,
// and we discuss this correction at the beginning of our follow up episode,
// [Algebraic Data Types: Exponents](https://www.pointfree.co/episodes/ep9-algebraic-data-types-exponents).

// Data * URLResponse + Error

//Either<Pair<Data, URLResponse>, Error>
Expand Down

0 comments on commit 644c723

Please sign in to comment.