We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We'd like our smart contract to be less functional. This is a big feature that introduce an entirely new language version (from 0.0.1 to 1.0.0).
Users should be able to create variables and modify them. Variables will be scoped by block.
name = "Anonymous" if true do name = "Roger" end # here, name == "Roger"
if true do name = "Roger" ... end # here, name is undefined
Because we will have mutable bindings, the for loop is the easiest way for user to handle lists.
for item in list do ... end
Instead of having all functions available directly, we will put them in modules.
Map.put(map, key, value) Map.get(map, key, default) Contract.set_content(string) Contract.set_type(string) Chain.get_first_address(string) Chain.get_genesis_address(string) ...
The text was updated successfully, but these errors were encountered:
bchamagne
Successfully merging a pull request may close this issue.
We'd like our smart contract to be less functional.
This is a big feature that introduce an entirely new language version (from 0.0.1 to 1.0.0).
Semantic versioning
Mutable bindings
Users should be able to create variables and modify them.
Variables will be scoped by block.
For loop
Because we will have mutable bindings, the for loop is the easiest way for user to handle lists.
Functions are grouped by modules
Instead of having all functions available directly, we will put them in modules.
The text was updated successfully, but these errors were encountered: