Scala ではトレイトの相互再帰的合成ができるけれども、それを実際のプロジェクトで使わないのと同じような理由で、 cake pattern による DI も、(まともに機能すると信じて)実際のプロジェクトに使うことはない気がする
Once again, Scala doesn't implement inheritance of lazy fields. If you "simply" inherit a nullary function definition instead, you get exponential effect duplication and lack of proper state sharing as children inherit.
-
-
Stumble upon this issue. So what you mean by "incorrect" is that overriding lazy vals with super self-reference goes wrong?https://github.com/lampepfl/dotty/issues/1999 …
-
My understanding is that in Scala, you're not allowed to reference the inherited value of the lazy val from the super class.
- 8 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!