Camto / calc

calc= is a small concatenative programming language for doing math in chats.
https://camto.github.io/calc
MIT License
13 stars 1 forks source link

Suggestion: Initialize multiple variables to the same value #3

Closed ghost closed 4 years ago

ghost commented 4 years ago

Currently, variables are declared separately (terminating in semicolons) like so:

var1 = 0; var2 = 0; var3 = 0;

Although this is just for sugar purposes, would it be possible to implement:

var1, var2, var3 = 0;
Camto commented 4 years ago

This is some nice sugar, but I don't think the change is needed enough to warrant being in the rewrite, so I'll just move this to maybe be in v2.