Skip to content
New issue

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

Variable Declaration #4

Open
SK1Y101 opened this issue Jul 5, 2021 · 1 comment
Open

Variable Declaration #4

SK1Y101 opened this issue Jul 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@SK1Y101
Copy link
Member

SK1Y101 commented Jul 5, 2021

For example, we have x = 5, or int x; x = 10 In Python and C++.

What if we instead use store 5 in the variable x or make x have a value of 5 or something like that?

@SK1Y101 SK1Y101 added this to the Full Language Syntax milestone Jul 5, 2021
@SK1Y101 SK1Y101 added the enhancement New feature or request label Jul 5, 2021
@SK1Y101 SK1Y101 mentioned this issue Jul 5, 2021
14 tasks
@SK1Y101
Copy link
Member Author

SK1Y101 commented Jul 6, 2021

Assignment

Aditionally, languages support reassigning variables:

python:

x = "hello there"

example idea in verboscript:

set x to hello there

Augmented assignment:

Some languages also support assignment and modifying in place:

python example:

x = x + 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant