Using closure in function scope to make "real" private class members
forkit
forkit at gmail.com
Wed Jun 8 11:52:32 UTC 2022
On Wednesday, 8 June 2022 at 11:49:26 UTC, bauss wrote:
>
> I don't like it, it seems to add much more clutter, like
> imagine some long generic type name.
Yes, I agree. Too much typing ;-)
.. and what happens if you mistype??
Forget that idea ;-)
btw. interesting (but old) discussion in the scala commmunity
around this idea:
I think they ended up dropping private[this] in scala 3 anyway,
despite this proposal to keep it.
but the conversation is interesting.
https://contributors.scala-lang.org/t/proposal-to-retain-private-this-in-scala-3/3829
More information about the Digitalmars-d
mailing list