Skip to content

Instantly share code, notes, and snippets.

@deanwampler
Created October 11, 2020 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deanwampler/852ab4ea8487b9579980bc1ab9dc9b18 to your computer and use it in GitHub Desktop.
Save deanwampler/852ab4ea8487b9579980bc1ab9dc9b18 to your computer and use it in GitHub Desktop.
Scala 2 vs. 3 braceless syntax: match expressions
0 match {
case 0 => "zero"
case _ => "other value"
}
0 match
case 0 => "zero"
case _ => "other value"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment