I want to understand why Rich Decorators over basic types say Int which has RichInt as type which adds a lot of utility methods ( I guess ) are part of scala.runtime and not say probably scala.util…? Are there any reasons for the same or just they are there because they are there?
Share
I’d guess it’s because they’re important enough to need to be imported automatically, so there’s no need to expose them in a package like
scala.utilthat contains optional imports that you need to do manually.runtimeisn’t a package that users are really supposed to need to look at.