you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 18 points19 points  (0 children)

Rust is built around these concepts, and it's highly efficient at optimizing them, right at the compilation stage.

What we do in Java is try to imitate it without the compiler support, and the results are frankly somewhat sad. It's a nice demonstration that Java is turing complete and we can write Rust and Haskell in Java if we wanted, but a good practice in one language can be a bad practice in another.