Scala demo with Tuple and Option and Pattern Matching and Exception
Channel:
Subscribers:
11,000
Published on ● Video Link: https://www.youtube.com/watch?v=pYeeYNcFyrI
The Tuple is good for returning multiple values without creating a class. The maximum number of values is currently 22. Which means that there is actually a type called Tuple22!
The option is a good way to avoid NullPointer-Exceptions.
The Pattern Matching is good for evaluating values.
The Exception handling is using pattern matching!
Enjoy! :-)
Feel free to comment or ask questions.
The code is located here:
https://github.com/ekim197711/springboot-scala
Follow me on twitter:
https://twitter.com/MikeMoelNielsen
Other Videos By Mike Møller Nielsen
Tags:
scala
option
tuple
pattern matching
exception
exception handling