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

Using Colon #34

Open
itsabgr opened this issue Aug 23, 2024 · 2 comments
Open

Using Colon #34

itsabgr opened this issue Aug 23, 2024 · 2 comments

Comments

@itsabgr
Copy link

itsabgr commented Aug 23, 2024

Using ?= a bit confusing.
The := operator, like in Go, is a better option.

@arthurfiorette
Copy link
Owner

Hmm, that's also a good idea.

But i think this proposal is leaning towards a "operator" like void or throw than a assignment operator that could only be used within code blocks.

@itsabgr
Copy link
Author

itsabgr commented Aug 25, 2024

What about something like

const [error, response] = try {
 return await fetch("https://arthur.place")
}

or

const [error, response] = try await fetch("https://arthur.place")

?

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

2 participants