|
|
|
|
|
by Cthulhu_
1313 days ago
|
|
I've used patterns like that in Scala; I see their value in building a correct system etc etc etc, but only if it's consistently used throughout the codebase. As it stands, most JS/TS projects aren't very consistent to begin with; error handling is either not done at all (let it fail), or a mix of exceptions, failing promises, error responses / types / states, etc. But that's not really down to the language, more the underlying culture. |
|