Make Local Declarations Explicit #38

Merged
kayomn merged 2 commits from kym-explicit-local-declarations into main 2023-08-26 01:14:02 +02:00
Owner

Adds the requirement of a storage classification specifier to every local declaration.

As part of this PR, the supported storage classifications are:

  • var: may be dynamically re-assigned after declaration to hold any object type and value.
  • let: assigned object is immutable after creation.

More storage classes may be added in the future.

This PR also prevents local shadowing from being permitted anymore.

Adds the requirement of a storage classification specifier to every local declaration. As part of this PR, the supported storage classifications are: * `var`: may be dynamically re-assigned after declaration to hold any object type and value. * `let`: assigned object is immutable after creation. More storage classes may be added in the future. This PR also prevents local shadowing from being permitted anymore.
kayomn added this to the (deleted) milestone 2023-08-26 00:44:11 +02:00
kayomn self-assigned this 2023-08-26 00:44:11 +02:00
kayomn added 1 commit 2023-08-26 00:44:12 +02:00
Make local declarations require "var" prefix
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
83fa162ba8
kayomn added 1 commit 2023-08-26 01:11:42 +02:00
Add read-only storage class for locals
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
960d022d03
kayomn changed title from WIP: Make Local Declarations Explicit to Make Local Declarations Explicit 2023-08-26 01:11:56 +02:00
kayomn merged commit 0e26b8acde into main 2023-08-26 01:14:02 +02:00
kayomn deleted branch kym-explicit-local-declarations 2023-08-26 01:14:03 +02:00
Sign in to join this conversation.
No description provided.