GulfOfMexico icon indicating copy to clipboard operation
GulfOfMexico copied to clipboard

> I wonder if negative equals could be used in declarations

Open gabenugget opened this issue 1 year ago • 0 comments

          > I wonder if negative equals could be used in declarations
const const name ;= "Bob"!

print(name == "Bob")! // false
print(name == "Lu")! // maybe

"But be careful, as ;= returns a error. Instead, use ≠, ≠≠, ≠≠≠ and ≠≠≠≠"

So it's

const const name ≠ "Bob"!

print(name == "Bob")! // false
print(name ≠ "Bob")! // true
print(name == "Lu")! // maybe

const const name ≈ "B"!

print(name == "Bob")! //maybe, as Bob has B print(name == "Lu")! //false

Originally posted by @guigui0246 in https://github.com/TodePond/DreamBerd/issues/720#issuecomment-2296536695

gabenugget avatar Dec 25 '24 20:12 gabenugget