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

Feat: support for expression in computed member expressions. #55

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

pacifiquem
Copy link
Member

Now we support expressions in computed member expressions!:

reka obj = {
   key: "value",
   key2: "value2"
}

reka value = obj[injiza_amakuru(" enter key's name you want the value of: ")]  # if input is key2
tangaza_amakuru(value) # This will print value2

Any expressions can now work for computed value.

@pacifiquem pacifiquem changed the title fix: remove unused tokens that were causing problems (umubare, umubar… Feat: support for expression in computed member expressions. Feb 19, 2024
@pacifiquem pacifiquem merged commit 36fc4af into main Feb 19, 2024
3 checks passed
@pacifiquem pacifiquem deleted the member-expr branch February 19, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant