GulfOfMexico
GulfOfMexico copied to clipboard
Update README.md - array name enforcement feature
Adds the revolutionary plural array name enforcement checker directly into DreamBerd's runtime.
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 ?
What if I have a plural array with 1 item?
const const numbers = [1]!
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]