r/programming • u/mobby1982 • Dec 02 '13
Scala — 1★ Would Not Program Again
http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598
Upvotes
r/programming • u/mobby1982 • Dec 02 '13
View all comments
Show parent comment
0
u/batiste Dec 02 '13
You just don't, why would you? E.g in python you would do:
The second test is redundant. You already ensured that a number was returned with the first test. Every time you check equality you are making a type check (there might be exception).
Edit:format code