Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Why wouldn't I just unwrap the values first and then do computation with the unwrapped values?

Same reason why you iterate over an array instead of assigning each value to a temporary variable: you have less code.



Plus you can do it also for indeterminate size iterators, or values not there yet (promises etc)...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: