Re:Destructuring and Recursion in ES6
by xamuel on Monday February 02, 2015 @03:18PM
(#8986655)
How is that more readable than:
function describe(nameAndOccupation){
return `${nameAndOccuptation.name.first} is a ${nameAndOccupation.occupation}`;
}
?
When people use features purely for the sake of using those features, the result is not "more readable". Ever notice that pseudocode is almost always imperative?
Re:Destructuring and Recursion in ES6
by whichdan on Monday February 02, 2015 @06:30PM
(#8987860)
I should have been a little more explicit: the string interpolation, though not the focus of the article, is part of what interests me w.r.t. readability.
function describe(nameAndOccupation){ return `${nameAndOccuptation.name.first} is a ${nameAndOccupation.occupation}`; } ?
When people use features purely for the sake of using those features, the result is not "more readable". Ever notice that pseudocode is almost always imperative?