Add "a ?= 2" support for meaning "a = a.nil? ? 2 : a"
Added by rosenfeld (Rodrigo Rosenfeld Rosas) about 7 years ago. Updated over 6 years ago.
This is a minor, but important, difference to the "a ||= 2" syntax.
The perl example is not very elegant.
I first think that someone wants to divide via / somehow.
I also rarely see x = x ? y and it reminds me of ternary operator.