onflow / cadence

Cadence, the resource-oriented smart contract programming language 🏃‍♂️
https://cadence-lang.org
Apache License 2.0
534 stars 138 forks source link

Make access control mode configurable #297

Open turbolent opened 4 years ago

turbolent commented 4 years ago

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

10thfloor commented 4 years ago

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

turbolent commented 4 years ago

@10thfloor Good point, added