ProTip:
In both languages you can do the following:
return number > 2;In both languages you can do the following:
return number > 2; return if($number > 2);
Is equivalent to: if($number > 2){
return;
} x = 42 if y > 7;
Rather than x = match y > 7 { true => 42, false => 0 };
Or even: foo() if bar();
Rather than: if bar() { foo() }