DEV Community

Discussion on: Error Handling in JavaScript (Golang Style)

Collapse
 
calinbaenen profile image
Calin Baenen

Better yet, just use GoLang.

Collapse
 
bibekkakati profile image
Bibek

Good idea. ๐Ÿ˜‰

Collapse
 
calinbaenen profile image
Calin Baenen • Edited

Of course it is! Everyone knows Go is the best language objectively.

Collapse
 
calinbaenen profile image
Calin Baenen

I've reconsidered. . .

Collapse
 
calinbaenen profile image
Calin Baenen

Thinking back, I spoke very unwise words.
It should be "Better yet, just use Rust." โ€” Rust's error handling is exceptional. :รพ

Collapse
 
arndissler profile image
Arnd Issler

The thing is: a good bunch of developers is not prepared to "just use" Rust. The learning curve for Rust is the same as its error handling: exceptional.

But once learned and added to your developer toolchain, it is unlikely that you come back to this article in 2028 and push the next programming language, as you might have learned on the way that not every programming language is suitable for all use cases.