News for hackers. Stuff that matters.
Re:Flappy Bird in Swift by lfuller on Tuesday June 03, 2014 @05:50PM (#7842945)
I'd argue the second is clearer in many cases. Readability trumps conciseness any day.
Re:Flappy Bird in Swift by MaulingMonkey on Wednesday June 04, 2014 @01:12AM (#7844143)
I agree that readability trumps shortness of code. I want not for APL nor code run through a javascript minifier.

But the branch and explicit boolean comparison are additional structural complexity (not just "verbosity") and invariably harms readability to me. Care give a poster child example for where it helps readability? Unless it's unclear <expression> results in a boolean - a problem better solved through better naming - code like this forces me to perform the equivalent simplification in my head to understand and reason about the code, a process fraught with error and distraction from my actual task.

Re:Flappy Bird in Swift by the_af on Tuesday June 03, 2014 @08:19PM (#7843437)
Really? In which cases would the previous example be clearer than

    return expression;
What readability does the verbosity add?