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

Remove public remove public modifier for public functions in the standard library #2004

Open
jurgenvinju opened this issue Jul 17, 2024 · 0 comments
Assignees

Comments

@jurgenvinju
Copy link
Member

Users take the code of the standard library as exemplary rascal code.

Long time ago we switched the default for functions from private to public, for the sake of usability and brevity. We have never removed the modifier in existing library code.

With more and more new functions being added this starts to become inconsistent and therefore a bit confusing.

Let's add private where it was forgotten and remove public where it's unnecessary; everywhere in the stdlib.

Typically something to do after merging rascal-core back into rascal.

@jurgenvinju jurgenvinju self-assigned this Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant