Skip to content

Comment on Exceptions (2003)

Comments

The advantage of exceptions is the ability to pass back the error and make mandatory dealing it (even if ignoring).

Exist a way to have both styles, cleanly?

I have thinking in how could look a language where objects, like in UNIX pipes, have stdout & stderr, and if stderr is consumed (returning codes) the exception is handled, but if stderr is not consumed, then raise it?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.