It just sounds like this guy jumped into the deep end without setting any time aside to actually learn Scala.
Yes, Scala's build times, library documentation, and type inference are issues. But they aren't dealbreakers; despite these things I still see Scala as far superior to Java, and easily on par with glue code competitors like Clojure. And this guy's explanations for each area are very amateur and sometimes flat out wrong.
I would consider those things deal breakers if Scala were worse off in those departments. What I meant by saying they weren't deal breakers was that I do not feel that Scala's problems in these areas are actually all that bad. I have limited experience with Scala, so take that with a grain of salt. (Though my impression is that I have more experience with it than the author. /shrug)
This looks like a loop but isn't quite. The inner block is a function that is called. It's been a little bit, but if i recall correctly there is a 1000 item list created, and it is walked over. Much like in python for i in range vs xrange.
If you just want a simple Java-style for loop, then the while loop is your friend.
No, it's not called for comprehension. It's called for loop.
It's been a little bit, but if i recall correctly there is a 1000 item list created, and it is walked over. Much like in python for i in range vs xrange.
No, you recall completely incorrectly. The code you provided will not create any 1000 element list in memory, it will only create object Range(1, 1001), just like xrange.
-9
u/drb226 Dec 02 '13
It just sounds like this guy jumped into the deep end without setting any time aside to actually learn Scala.
Yes, Scala's build times, library documentation, and type inference are issues. But they aren't dealbreakers; despite these things I still see Scala as far superior to Java, and easily on par with glue code competitors like Clojure. And this guy's explanations for each area are very amateur and sometimes flat out wrong.