DEV Community

Discussion on: Why all this hate about Python?

 
aghost7 profile image
Jonathan Boudreau • Edited

Sorry, I think I meant downcasting. I've had to use this on several occasions when I was writing Java. I think the worst I've encountered in the standard library is casting object to something else.

Thread Thread
 
evanoman profile image
Evan Oman

Hmm, yeah usually you want to avoid downcasting at all costs (most Java devs consider it a code smell). Java is certainly far from perfect but Java 8 and 9 make it muuuuch nicer to work with (especially if you like Scala).

Thread Thread
 
aghost7 profile image
Jonathan Boudreau

If you're referring to streams I'm afraid that there's still some catching up to do (based on the last time I looked at it) when compared to Rust or Scala.

Thread Thread
 
evanoman profile image
Evan Oman

Streams, Optionals, Futures, Method References, and Lambdas everywhere are all great additions but it definitely lags behind Scala in some ways (never tried Rust).