News for hackers. Stuff that matters.
Re:Yoda Conditions by yellowapple on Friday February 17, 2017 @01:13PM (#13670372)
To clarify a bit: postfix conditionals actually originate from Perl, and are one of several things that Ruby inherited as a Perl descendant.

In Perl:

    if ($x > 0) { $y += $x }
versus:

    $y += $x if $x > 0;

There are no comments on this comment yet.