The get method, from the Option type in Scala, should never be used. In this video I discuss why this is the case, and present two simple alternatives.
Bottom line: Optional is for dealing with optional types, and the absence of values should be properly handled.
Sbt WartRemover: http://www.wartremover.org/
Subscribe to the channel and click the bell icon!
My Flicker Album with 3D Printing Related pictures:
https://www.flickr.com/photos/jcranky...
Contact points:
---
Twitter: / jcranky
Website: http://jcranky.com/
Blog: http://blog.jcranky.com/
Github: https://github.com/jcranky
Intro background music:
"Danse Macabre - Finale" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0 License
http://creativecommons.org/licenses/b...