Conversation with @BrianGoetz about pattern matching in #JavaNext: * why `Map::get` should be a pattern * the linear thinking trap * null handling in pattern matches * exhaustiveness in switch statements * the rehabilitation of `switch` youtube.com/watch?v=a8OdwU…
@BrianGoetz On the rehabilitation of `switch`, Brian said (at 16:58m, youtube.com/watch?v=a8OdwU…): > The choice wasn't really "make a new thing", it was "have two things". A fact that's often overlooked when starting something new. Unless there's an actionable plan to remove the old thing…
@nipafx @BrianGoetz Is there a good reference with a description of the term “total”? It gets used quite a bit, and I’m not sure I totally get it. :)
@nipafx @BrianGoetz Nice, complete with the Boris Vallejo artwork from Zelazny's _Chronicles of Amber_. I didn't grow up in the 1970s for nothing!
@nipafx @BrianGoetz I suspect this squashes some questions we raised in the just published @illegalargument. Greg's still strongly anti pattern matching, I say bring it on however.