logoalt Hacker News

OptionOfTtoday at 1:16 PM1 replyview on HN

What about doing something that Java does with the throws keyword? Would that make the checking easier?


Replies

bigfishrunningtoday at 1:45 PM

I think that's exactly what's being asked for here (via the "panic effect" that the article refers to)

although, I think i'd prefer a "doesn't panic" effect just to keep backwards compatibility (allowing functions to panic by default)

show 1 reply