Re:Facebook Announces React Fiber, a Rewrite of Its React Fr...
by vertex-four on Wednesday April 19, 2017 @10:43AM
(#14148025)
To be honest, the lack of it existing in javascript aside, statements-as-expressions is a useful thing - no need to remember the semantics of `if {} else {}` vs `? :`, ability to have very complex (multi-line) expressions, and in languages with RAII, blocks being expressions means it's easy and clear to be able to acquire a resource in order to calculate a single value.
[ Parent
| on HN ]
There are no comments on this comment yet.