GulfOfMexico icon indicating copy to clipboard operation
GulfOfMexico copied to clipboard

Update README.md - array name enforcement feature

Open codec-xyz opened this issue 1 year ago • 3 comments

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

codec-xyz avatar Sep 24 '24 01:09 codec-xyz

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 ?

guigui0246 avatar Sep 26 '24 16:09 guigui0246

What if I have a plural array with 1 item?

const const numbers = [1]!

TheBunnyMan123 avatar Nov 15 '24 20:11 TheBunnyMan123

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]

guigui0246 avatar Nov 19 '24 13:11 guigui0246