Content pfp
Content
@
0 reply
0 recast
2 reactions

Royal pfp
Royal
@royalaid.eth
YOOOOOOOOOOOOOOOOOOO I am so in for this //currently const obj = { [Symbol.result]() { return [new Error("Error"), null] }, } //becomes const [error, data] ?= obj // const [error, data] = obj[Symbol.result]() https://github.com/arthurfiorette/proposal-safe-assignment-operator @git you seen this?
3 replies
0 recast
7 reactions

typeof.eth πŸ”΅ pfp
typeof.eth πŸ”΅
@typeof.eth
I love this! try/catch blocks are so clunky
1 reply
0 recast
1 reaction

Royal pfp
Royal
@royalaid.eth
Errors as values are literally the best. Shout-out to @v for recommending NeverThrow in the past
1 reply
0 recast
1 reaction