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

Update README.md - array name enforcement feature #744

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

codec-xyz
Copy link

Adds the revolutionary plural array name enforcement checker directly into DreamBerd's runtime.

@guigui0246
Copy link

I'm french and I made a language where it's written as pronounced in french
"liste" (means "array") is written "list" but "listes" (means "arrays") is also written "list" as you don't pronounce the s at the end of words if there is not a vowel behind. Does that mean it will accept it for any number of list indentation ?

@TheBunnyMan123
Copy link
Contributor

What if I have a plural array with 1 item?

const const numbers = [1]!

@guigui0246
Copy link

What if I have a plural array with 1 item?

const const numbers = [1]!

Then it will rename it to singular I think.
Here is my interpretation of this:

const var numbers = [1]!
print(number)! // [1]
numbers[-0.5] = 2? // numbers doesn't exist
number[-0.5] = 3!
number[-0.5] = 4? // number doesn't exist
numbers[-0.5] = 5!
print(numbers)! // [1, 3, 5]
print(number)! // number doesn't exist
number[-0.5] = 6! // number doesn't exist but the interpreter should create it because the program is sure it wants to do that
print(number)! // [6]

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.

3 participants