Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

> I wonder if negative equals could be used in declarations #783

Open
gabenugget opened this issue Dec 25, 2024 · 0 comments
Open

> I wonder if negative equals could be used in declarations #783

gabenugget opened this issue Dec 25, 2024 · 0 comments

Comments

@gabenugget
Copy link

          > 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 #720 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant