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

Make access control mode configurable #297

Open
1 of 3 tasks
Tracked by #290
turbolent opened this issue Aug 6, 2020 · 2 comments
Open
1 of 3 tasks
Tracked by #290

Make access control mode configurable #297

turbolent opened this issue Aug 6, 2020 · 2 comments

Comments

@turbolent
Copy link
Member

turbolent commented Aug 6, 2020

Context

The type checker supports different "access check modes", i.e. the strictness of how access control modifiers are enforced. Currently the mode is hard-coded to be strict, i.e. all declarations must have an access modifier.

Make the setting configurable, so developers can choose what mode they prefer. This makes getting started with Cadence easier, as no effort has to be spent on providing correct access modifiers for declarations.

Definition of Done

  • CLI: Add flag to let the developer choose access check mode
  • Language Server: Add a setting to let the developer choose access check mode
  • Documentation
@10thfloor
Copy link
Contributor

@turbolent Add documentation should be part of this issue, and others that propose to add new features.

@turbolent
Copy link
Member Author

@10thfloor Good point, added

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

2 participants