mani-language / Mani

Máni ... an awesome, super simple programming language!
https://mani-language.github.io/
Mozilla Public License 2.0
28 stars 7 forks source link

Using -> to assign data to a variable. #3

Closed crazywolf132 closed 6 years ago

crazywolf132 commented 6 years ago

Currently you can assign data to a variable as such:

let a = 5; let b = 0;

b = a;

etc.

It would be good if we could also allow for:

a -> b; // Meaning we are taking the data from a, and placing the same data in b as-well.

crazywolf132 commented 6 years ago
>> let a = 5;
>> let b;
>> say b;
nil
>> a -> b;
>> say b;
5
crazywolf132 commented 6 years ago

Should add this to the docs. #15

Will close this issue, once added to the docs.