in reply to RFC: "assignary" operator ?= :
New operators jerk my knee jerk
But they come and they go
but it they come they must come correct in perlop, no half assing like Postfix Dereference
assignary ? No
Its conditional assignment
Also not ter-signment , tri-sign, con-sign
$var = $var ? JSON::PP::true : JSON::PP::false; $var ?= JSON::PP::true : JSON::PP::false; $var = $var ? JSON::PP::true : JSON::PP::false; $var ?= JSON::PP::true : JSON::PP::false; ($coo ?= $fudge : $brownie ) ?= $blondie : $oatmeal; ($coo ?= $fudge : $brownie ) ?= $blondie : $oatmeal; ($coo ?= $fudge : $brownie ) ?= $blondie : $oatmeal; ($coo ?= $fudge : $brownie ) ?= $blondie : $oatmeal; $coo = $coo ? $fudge : $brownie; $coo = $coo ? $blondie : $oatmeal;
diabetes, a pleasant way to die?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RFC: "assignary" operator ?= : ( conditional assignment , golf, death by diabetes )
by richard.sharpe (Sexton) on Dec 09, 2019 at 13:24 UTC | |
by LanX (Saint) on Dec 09, 2019 at 19:36 UTC | |
by richard.sharpe (Sexton) on Dec 09, 2019 at 21:24 UTC |