“For example, given this, rather contrived, function definition: def f(): Int = try return 1 finally return 2
calling f() results in 2. By contrast, given: def g(): Int = try 1 finally 2
calling g() results in 1. Both of these functions exhibit behavior that could surprise most programmers, so it's usually best to avoid returning values from finally clauses.”
―
Programming in Scala Fifth Edition: Updated for Scala 3.0
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
0 likes
All Members Who Liked This Quote
None yet!
This Quote Is From
Programming in Scala Fifth Edition: Updated for Scala 3.0
by
Martin Odersky1,663 ratings, average rating, 100 reviews
Open Preview
Browse By Tag
- love (101345)
- life (79362)
- inspirational (75842)
- humor (44338)
- philosophy (30964)
- inspirational-quotes (28889)
- god (26867)
- truth (24739)
- wisdom (24617)
- romance (24350)
- poetry (23293)
- life-lessons (22586)
- quotes (21011)
- death (20532)
- travel (20109)
- happiness (19002)
- hope (18526)
- faith (18384)
- inspiration (17297)
- spirituality (15702)
- relationships (15530)
- religion (15375)
- motivational (15323)
- life-quotes (15301)
- love-quotes (15138)
- writing (14938)
- success (14185)
- motivation (13177)
- time (12864)
- motivational-quotes (12154)
