Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Two Years with Rust. Parent comment
1. Don't have to name the parameter
2. less nesting.
You can get the best of all worlds with lambdacase style constructs. You don't need to write out the name of the function a bunch of times.
function = \case SpecialCase -> ... handle_odd_special_case; Default -> ... main_business_logic;
There are no comments on this comment yet.
1. Don't have to name the parameter
2. less nesting.
You can get the best of all worlds with lambdacase style constructs. You don't need to write out the name of the function a bunch of times.