Open itsabgr opened 2 months ago
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.
What about something like
const [error, response] = try {
return await fetch("https://arthur.place")
}
or
const [error, response] = try await fetch("https://arthur.place")
?
Using
?=
a bit confusing. The:=
operator, like in Go, is a better option.