Frontend First
Frontend First
Sam Selikoff, Ryan Toronto
Throw is about control flow – not error handling
1 hour 4 minutes Posted Apr 10, 2024 at 4:31 pm.
0:00
1:04:11
Download MP3
Show notes
Sam and Ryan talk about why it’s better to think of throw as a general-purpose JavaScript language feature rather than something that should only be used for error handling. They discuss the ambiguity around the phrase “error handling”, situations that call for dealing with errors locally vs. globally, and how throw can be useful for non-error control flow. They also discuss the problems with trying to shoehorn dynamic features into a static site.