News for hackers. Stuff that matters.
Re:Your programming language is probably unproductive by petre on Wednesday September 28, 2016 @01:21PM (#12599488)
Yup, I always do this when writing JavaScript or other languages that allow prefix single statements with or without braces. Otherwise I use braces if the statement is too long to fit in the editor w/o forcing you to scroll. Perl only allows postfixed single statements w/o braces, so you're safe:

    say "yes" if $condition;
    if ($condition) {
        say "yes";
        $affirmative++;
    }

There are no comments on this comment yet.