-
Notifications
You must be signed in to change notification settings - Fork 70
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
jẹ́kí should not be use with increments #58
Comments
Thank you for your input. The purpose of yorlang is to allow beginners to interact with programming concepts and syntax in their native tongue. So the idea of PHP likewise has this feature where a dollar sign is attached to a variable at all times. More or less we are allowing the beginner to let It's the same reason why i++ and i-- are not supported. I'm only trying to make things as clear as possible. We should also remember that yorlang is not a commercial language. It is just a stepping stone to helping them get familiar with programming concepts and syntaxes in the language they understand the most. They must still learn the commercial languages that you and I know |
Another thing to note, using jeki when re-assigning a variable does not recreate the variable, it simply updates its value in memory. |
Since
jẹ́kí
is use for creating variables it makes no sense using it to increment for examplefún ( jẹ́kí i = 0 ; i < 5 ; jẹ́kí i = i + 1 ;) {}
,jẹ́kí i = i + 1
should bei = i + 1
since variablei
as been created, no point creating it again and I don’t see any reason why we should use a keyword to assign values to variablesThe text was updated successfully, but these errors were encountered: