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?

  • Comment on Re: RFC: "assignary" operator ?= : ( conditional assignment , golf, death by diabetes )
  • Download Code

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

    thanks :)

    you forgot mention "assholy trinity" as possible name for such operator, it would be very on-topic in this community :)

      > "assholy trinity" ... it would be very on-topic in this community :)

      You start a "request for comments" and then you call us assholes?

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

        It was not meant this way, Rolf. I would not dare to call anybody here "asshole" or other disrespectful way.

        It was just other trying-to-be-funny name for this operator in this series of suggestions:

        • assignary
        • ter-signment
        • tri-sign
        • con-sign
        • assholy trinity :)

        And "on-topic in this community" was not meant as calling assholes, but as holy trinity fits in cleric terminology used here at Perl Monks. (Being also member here, if I would call community disrespectful way, I would call myself this way too.)

        Just wordplay joke aimed to operator itself, no offense.