Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default access modifier #261

Open
Polaris257 opened this issue Apr 16, 2021 · 3 comments
Open

Change default access modifier #261

Polaris257 opened this issue Apr 16, 2021 · 3 comments

Comments

@Polaris257
Copy link

Is your feature request related to a problem? Please describe.
I guess I find it a little tedious to have to manually add the public modifier to classes, fields, etc.

Describe the solution you'd like
It would be cool to be able to turn on a flag such that public is the default access modifier, similar to Kotlin. (Kotlin introduces the internal modifier that is similar to the Java default of "package-private".)

Describe alternatives you've considered
No alternatives come to mind at the moment.

Additional context
I just learned about Manifold today, so I'm not sure if this feature request is in the realm of possibility. (Sorry in advance if not)

@rsmckinney
Copy link
Member

Hi @Polaris257. Definitely possible, I'll consider it. Cheers.

@baiyanlali
Copy link

I'm trying to add this feature.

baiyanlali added a commit to baiyanlali/manifold that referenced this issue May 18, 2022
@baiyanlali
Copy link

Hey. To implement the feature, I add an annotation "@PublicDefault" to change variable, method and class in a class to public by default.

Please go to my pull request for more detail! #366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants