Making subclassing more flexible

mind your telephone grip

package is not a replacement for @_spi and proponents of the keyword didn’t conceive of it as such when it was first being pitched.

i think you are not getting as much out of your @_spi attributes as you could because you are creating a project-wide namespace @_spi(package) which is basically what the package keyword was meant to prevent. the s in @_spi stands for system programming interface, you should have one for each system in your project, like @_spi(messages) for printMessage.

1 Like