Files

1.7 KiB
Raw Blame History

title, type, source, source_url, author, handle, post_id, date, archived, draft, tags, description, in_reply_to
title type source source_url author handle post_id date archived draft tags description in_reply_to
TIL that this is correct syntax and that `finally` runs after the return of the function archive twitter https://x.com/alexdotjs/status/1704472735219339585 Alex / KATT 🐱 alexdotjs 1704472735219339585 2023-09-20 2026-08-27 false
archive
twitter
alexdotjs
TIL that this is correct syntax and that `finally` runs after the return of the function

Source

Thread

1/ @alexdotjs ^1704472735219339585

TIL that this is correct syntax and that finally runs after the return of the function

#junior4lyfe

2/ @ThePrimeagen ^1704676599210127604

@alexdotjs

Try catch is a mistake

3/ @rfleury ^1704715681831538787

@ThePrimeagen @alexdotjs

“Error data” is not special data, and doesn’t deserve special treatment via special language features. Error conditions are just conditions, and code needs to be prepared one way or another for all plausible conditions

4/ @eloytoro ^1704801861570560417

@rfleury @ThePrimeagen @alexdotjs

How about panics

5/ @rfleury ^1704841356181745924

@eloytoro @ThePrimeagen @alexdotjs

Panics are reasonable but are appropriate for a very small % of what people call “errors”

6/ @eloytoro ^1704842606943899762

@rfleury @ThePrimeagen @alexdotjs

the problem is when there's no semantic difference between an exception and a panic, like in JS/Java/C++ etc