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

Private and protected members #7

Open
StefanUlbrich opened this issue Mar 12, 2020 · 5 comments
Open

Private and protected members #7

StefanUlbrich opened this issue Mar 12, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@StefanUlbrich
Copy link

Hi, awesome project.

Is it planned to shorten private and/or protected class members similarly to local variables (unsafe transformation)?

best

@dflook
Copy link
Owner

dflook commented Mar 12, 2020

That's a good idea, I hadn't thought of that!

@dflook dflook added the enhancement New feature or request label Mar 12, 2020
@StefanUlbrich
Copy link
Author

Cool, how difficult will it be to implement this feature? How can I contribute? I looked at the code base but a hint on where to start would be helpful.

@dflook
Copy link
Owner

dflook commented Mar 24, 2020

It's more difficult than I initially thought, but definitely doable. The first step is tracking references to instance/class attributes. I'll have to consider it a bit more before deciding on an approach.

@StefanUlbrich
Copy link
Author

Ok, thanks. Please tell me if I can help

@MuTsunTsai
Copy link

Any news on this issue? One quick way to implement this will be just pick those members starting with __ or _ and mangle them regardlessly. This is of course VERY unsafe, but should work for those who want this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants