Why isn't scala.collection.mutable.TreeMap
sold and other Map
(for example, HashMap
)?(Furthermore, the immutable TreeMap
was final, and HashMap
was sold, so no modifier criteria could be found.)
I thought the reason why I use the sealed class in Scala is to combine it with the case class so that the compiler can detect pattern match leaks, but is there any other reason?
scala
I want to prevent inheritance and expansion, but I think finalizing it is not an implementation that can return a class inherited from TreeMap such as rangeImpl
.
2022-09-30 21:25
If you have any answers or tips
Popular Tags
python x 4647
android x 1593
java x 1494
javascript x 1427
c x 927
c++ x 878
ruby-on-rails x 696
php x 692
python3 x 685
html x 656
Popular Questions
1537 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
1047 Uncaught (inpromise) Error on Electron: An object could not be cloned
1013 M2 Mac fails to install rbenv install 3.1.3 due to errors
1000 Error in x, y, and format string must not be None
867 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2025 OneMinuteCode. All rights reserved.