Re:From First Principles: Why Scala?
by yw3410 on Thursday February 11, 2021 @06:27PM
(#26108928)
Sure - you can implicit srcloc or capture the Exception, both of which preserve it; but that's not the default behaviour and it's not what we recommend to beginners.
If you go onto the scaladoc for Either today, you see a stringly-typed Either where they discard the Exception.
If you go onto the scaladoc for Either today, you see a stringly-typed Either where they discard the Exception.