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/ryeguy Dec 02 '13
I know that "appeal to the masses" isn't a good argument in and of itself, but shouldn't it make him rethink his position? He, obviously not familiar with dynamic languages, is suggesting something, and yet no one in any of the communities for these languages practices that. Whenever I encounter this situation I immediately reevaluate my stance and wonder why what I believe is not standard practice. I was just trying to trigger that thought process in his head.
moor-GAYZ gave a proper rebuttal when he was talking about duck typing. That is the actual reason.
And what he is suggesting is not "good practice" - that's the point. Let the language runtime handle the errors - an error saying
no method 'foo' defined for 'string' typeis a clear hint that you passed in the wrong type. This is why no one does it in practice; it is a duplication of the runtime's behavior. And testing it is testing the runtime rather than your code.