2 ms·
Yes, you can mark classes final as closed for extension, however Java follows the wisdom at the time that by default classes are open for extension. Additional
by pjmlp 1y ago
Yes, you can mark classes final as closed for extension, however Java follows the wisdom at the time that by default classes are open for extension.
Additionally, modern Java has sum types modeled on the same way as Scala.
Rust is to some extent inspired by ML languages, hence why several OCaml and Haskell refugees also hang around Rust.