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
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
83fa162ba8
Make local declarations require "var" prefix
kayomn added 1 commit 2023-08-26 01:11:42 +02:00
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
960d022d03
Add read-only storage class for locals
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 reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kayomn/ona#38
No description provided.