洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

I just want JavaScript (and every programming language having exceptions) to have an exception-coalescing operator, e.g. (?! is a hypothetical exception-coalescing operator):

const url = new URL(userProvidedValue, "http://deno.land")
  ?! new URL("https://deno.land");

https://fosstodon.org/@deno_land/113901615221653305

Sashin's avatar
Sashin

@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post

@hongminhee is the exception for if there is no user provided value or if the value is invalid?