πŸ’¬ Reply by Ephera

2024-11-14 πŸ”„ programmerhumor ┃ RE: TimeSquirrel

You don’t want to use exceptions in normal control flow, because they’re extremely slow. Every time you throw an exception, it has to collect a stacktrace, which is hundreds, if not thousands, of calculations, compared to a handful of calculations for returning a boolean or an enum variant.

Ephera

TimeSquirrel

πŸ”„ programmerhumor

πŸ’¬ Replies

No replies.

────

View parent post

View first post in thread

────

πŸ“‘ Local feed

πŸ•οΈ Communities

πŸ”₯ Hashtags

πŸ”Ž Search posts

πŸ”‘ Sign in

πŸ“Š Status

πŸ›Ÿ Help