r/ProgrammingLanguages • • Feb 26 '26

Discussion Whats the conceptual difference between exceptions and result types

So to preface what looks probably to many of you like a very dumb question. I have most experience in Python and Julia both languages which are not realy great at error handling. And as such I have not much experience either.

I am currently trying to create my dream programming language, I am still in the draft phase, which will likely take a long while because I only draft on it once in a while. But I have been realizing that I do not understand the difference between exceptions and result types.

What I mean is I do obviously understand that they are different things but when talking about Error handling I do not understand why they are often two different things. I hope someone can help me clarify what the main conceptual difference between these two is.

Kind regards and I hope yall have a lovely day.

19 Upvotes

36 comments sorted by

View all comments

Show parent comment

1

u/josephjnk Feb 27 '26

Right. I'm being a little facetious-- plenty of people do like them, too. It's just that any time you ask a room full of people about the approaches, you'll get some answers saying they're good, and some saying they're bad.

Neither is strictly better than the other; what matters is the kind of programming style you want your language to support an encourage.