GulfOfMexico icon indicating copy to clipboard operation
GulfOfMexico copied to clipboard

Add wildcards to the delete function.

Open realeatham opened this issue 1 year ago • 8 comments

See commits

realeatham avatar Jun 30 '24 14:06 realeatham

I like the idea of wildcards more generally. Like it could have its own section.

const const player* = "Lu"!

print(player1)! // Lu
print(player2)! // Lu

u know what i mean

TodePond avatar Aug 19 '24 11:08 TodePond

What if someone does const const const * = x! ? does that just break variables forever?

realeatham avatar Aug 20 '24 12:08 realeatham

What if someone does const const const * = x! ? does that just break variables forever?

  1. There is still var
  2. If before you had const const x = const *! it just does nothing
  3. If before you had const const x = var *! it just means every const you do is not const but var (ie: const const y = 1! == var var y = 1!)

guigui0246 avatar Aug 21 '24 07:08 guigui0246

I did not mean x, was using it as a placeholder. Like what about const const const * = 1!

realeatham avatar Aug 21 '24 08:08 realeatham

I did not mean x, was using it as a placeholder. Like what about const const const * = 1!

I am using it as a placeholder too.

const const 1 = var *!
const const const * = 1!
const const 2 = thing! // works like `var var 2 = thing!`

guigui0246 avatar Aug 29 '24 00:08 guigui0246

I forgot you could redefine numbers

realeatham avatar Aug 29 '24 05:08 realeatham

Is there anything you can't?

realeatham avatar Aug 29 '24 05:08 realeatham

Is there anything you can't?

no you can redefine everything

guigui0246 avatar Aug 30 '24 14:08 guigui0246