You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be useful for library developers to restrict something or rearrange the APIs.
It may be implemented as following:
enum class VisibilityLevel {
Public,
Internal,
} // no reasons to make it private or protected
@GenSealedEnum( // the actual usage
extensionsVisibility = VisibilityLevel.Internal,
objectVisibility = VisibilityLevel.Internal, // it's important to have separate visibility settings for extensions vs objects
)
The functionality may be used by library developers to hide some of the methods, or to implement it as actual fields and not as extensions.
The text was updated successfully, but these errors were encountered:
Would making the companion object or the sealed classinternal work for your use case? Or would you want to be able to have a publiccompanion object along with internal extensions?
implement it as actual fields and not as extensions.
I'm curious to hear more there as well. Would that be generating the sealed enum with @GenSealedEnum, but then not using the generated code for some of the implementations?
This may be useful for library developers to restrict something or rearrange the APIs.
It may be implemented as following:
The functionality may be used by library developers to hide some of the methods, or to implement it as actual fields and not as extensions.
The text was updated successfully, but these errors were encountered: