Replies: 2 comments 3 replies
-
|
I think the variable syntax would be like this: sorry if this is confusing |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Should we do these discussions on gitter , it could be easier |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently in Unv, you can assign to variable without worrying about declaration. It's inspired by Python.
In some other languages like C you should specify the type to declare a variable
I hope to add type support to Unv. So this syntax will be supported in the future.
But if you want to access global variables you should use
globalkeyword in Python. Unv has no decision yet.And if you want to access a variable in parent function, you should use
nonlocalkeyword in Python. Unv has no decision yet.JavaScript handles both cases easily by using
var,letorconstkeywords for variable declaration.So I thought to use


varkeyword in Unv. Please share your ideas with me.This is a live poll. Tap on your choice in the poll. @UnvLabs/dev and all others are invited.
Beta Was this translation helpful? Give feedback.
All reactions