Gidsss / UwUIDE

A compiler made to be cute uwu >~<
6 stars 0 forks source link

feat: able to assign to a subscripted string #281

Closed am-cid closed 4 months ago

am-cid commented 4 months ago

closes #279 if ever the team decides to allow string mutability


string subscripts can be assigned to

a-senpai = "1123"~
a{0} = "09 "~

pwint(a)~
>.< output: "09 123"

source

image

transpiled

image

output

image

output 2

image

am-cid commented 4 months ago

Team did not have a unanimous decision. We're going to do immutable strings