Make Local Declarations Explicit #38
No reviewers
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kayomn/ona#38
Loading…
Reference in New Issue
No description provided.
Delete Branch "kym-explicit-local-declarations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
WIP: Make Local Declarations Explicitto Make Local Declarations Explicit