Pre-SIP: Reference-able Package Objects

This is what I read in Scala 3 docs:

https://docs.scala-lang.org/scala3/reference/dropped-features/package-objects.html

will be dropped. They are still available, but will be deprecated and removed at some point in the future

While I like package objects in theory, I remember when using them with Scala 2 I have encountered so many implementation glitches, esp. in the compiler, but in other tooling as well, than I have learned to avoid them as a plague.

I understand you like to keep them (e.g. Plan for Package Objects in Scala 3). If it possible to implement them in a way which is glitchless, I am all for it, but considering backwards compatibility burden, I really doubt it it possible (and I have not seen much interest from other relevant people involved).

1 Like