GulfOfMexico icon indicating copy to clipboard operation
GulfOfMexico copied to clipboard

`const const const const` should make a variable unusable

Open MrDiamondDog opened this issue 2 years ago • 8 comments

const const const isn't constant enough.

const const const const should make a variable unusable. Completely useless. Constant. Immutable. Unreadable.

const const const const name = "world"!
print(name)! // Error: can not read const const const const variable.

MrDiamondDog avatar Jul 18 '23 04:07 MrDiamondDog

I like it, but i think that if you put a "const" more there, you could make unusable that variable on all your projects

Iuriiiiiii avatar Jul 29 '23 16:07 Iuriiiiiii

So const const const const const makes it completely unusable throughout your entire computer? I like it

MrDiamondDog avatar Jul 29 '23 16:07 MrDiamondDog

Don't forget that const const const const const const makes it constant, immutable and, unreadable on all devices worldwide forever. (For those of you at home, that is 6 consts.)

jerbear2008 avatar Jul 29 '23 20:07 jerbear2008

And you can’t forgot const const const const const const const, which makes it unusable throughout the entire galaxy.

MrDiamondDog avatar Jul 29 '23 20:07 MrDiamondDog

So const const const const const makes it completely unusable throughout your entire computer? I like it

No!It should make 'const' unusable,so u can only use 'var' later!

ghost avatar Jul 30 '23 08:07 ghost

That's what delete const is for

MrDiamondDog avatar Jul 30 '23 17:07 MrDiamondDog

And you can’t forgot const const const const const const const, which makes it unusable throughout the entire galaxy.

This could be combined with #119 and its proposed universe to something like universe delete const.

stohrendorf avatar Jul 30 '23 18:07 stohrendorf

You can't forget const const const const var var const const const const const var var var var var var var var var var var const const i wish i had this in DB it would be so useful

ktlknss avatar Nov 23 '24 10:11 ktlknss