karelpeeters
07/30/2017, 7:05 PMbenleggiero
08/01/2017, 10:56 PMkarelpeeters
08/02/2017, 2:29 AMfun T.func()
is just synthetic sugar for fun func(this: T)
.Ruckus
08/02/2017, 2:58 PMbenleggiero
08/02/2017, 11:18 PMprotected
field as internal
solely for the extension function, but still as protected
everywhere else.
This should work out just fine, since the visibility from 3rd party code is unaffected. It's just exposing to the extension function the same capabilities a subclass would have, and extensions are (partially) a replacement for "utility" subclasses.