kurtlawrence / papyrus

(Rust) repl
MIT License
440 stars 14 forks source link

Create mutating mechanism #23

Closed kurtlawrence closed 5 years ago

kurtlawrence commented 5 years ago

Related to #22.

Scope

Mechanism

The mutation has occurred with a single evaluation stage, such that it is unnecessary to repeat the same mutating code. Movement of data into the app_data will also not capture the data as a repeated eval loop will reconstruct that data. Assigned variables whilst in mutating state will not persist in further eval loops (the code is erased).

kurtlawrence commented 5 years ago

Not able to take args unfortunately, it would require the ability to keep passing through read data, which for now is not implemented.