Skip to content
This repository was archived by the owner on Feb 3, 2020. It is now read-only.
This repository was archived by the owner on Feb 3, 2020. It is now read-only.

All Variables Are Mutable References #67

Description

@sunjay

This is an intentional/planned bug.

In order to make the MVP implementation simpler, all variables are essentially mutable references when passed into functions. This isn't explicit at all and is instead some compiler magic that accomplishes everything behind the scenes. This is okay enough in the short term since the only functions are a few compiler functions, but references (#48) need to be properly implemented as soon as possible.

No mutation is currently protected.

Eventually, we want primitives to have copy semantics and structs to have move semantics (unless they implement Copy).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions