1594748428407693312, 1579667672144711680, 1576731875586224128, 1572626013452107778, 1568261818870800386, 1564616682219634714, 1561488791503720448, 1556471902473900032, 1740841191984488816, 1738688867681632596, 1741342049440612686, 1723970493307552093, 1726722109609804139, 1720480382905385130, 1711469313306284038, 1711389580018979139, 1708154192379216023, 1691290392204132353, 1696035115699445916, 1704472735219339585, 1675846329527062531

This commit is contained in:
ed committed 2026-08-27 23:41:07 -04:00
1 parent 490238ce89
commit 6767719a1c
44 files changed
+1851 -40

No files matched your search

@@ -0,0 +1,64 @@
---
title: "TIL that this is correct syntax and that `finally` runs after the return of the function"
type: archive
source: twitter
source_url: "https://x.com/alexdotjs/status/1704472735219339585"
author: "Alex / KATT 🐱"
handle: alexdotjs
post_id: "1704472735219339585"
date: 2023-09-20
archived: 2026-08-27
draft: false
tags:
- archive
- twitter
- alexdotjs
description: "TIL that this is correct syntax and that `finally` runs after the return of the function"
in_reply_to: ""
---
## Source
- URL: https://x.com/alexdotjs/status/1704472735219339585
- Author: Alex / KATT 🐱 (@alexdotjs)
- Posted: 2023-09-20 12:29:02
## Thread
**1/** **@alexdotjs** ^1704472735219339585
TIL that this is correct syntax and that `finally` runs after the return of the function
#junior4lyfe
![](https://pbs.twimg.com/media/F6eAcpHWkAAp18v?format=png&name=orig)
**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
+12
View File
@@ -0,0 +1,12 @@
---
title: alexdotjs
type: note
draft: false
description: Archived threads by alexdotjs.
tags:
- archive
- twitter
- alexdotjs
---
- [[archive/threads/alexdotjs/2023-09-20-til-that-this-is-correct-syntax-and-that-finally]]