Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on JEP draft: Exception handling in switch. Parent comment
- throws are nonlocal control transfer
- result types are adding a tag to the data or error
Think about whether the two can express the same things, and whether one can be translated to another without losing information.
There are no comments on this comment yet.
- throws are nonlocal control transfer
- result types are adding a tag to the data or error
Think about whether the two can express the same things, and whether one can be translated to another without losing information.