It's a bit different than the if/else or ternary it's used to replace, though
Ah no, this construct doesn't replace any ternary, it is a wholly different thing - but an example for replacement of a convoluted construct with a succinct idiom. Once you grok what x!! is about, you'll never forget what it does.
In reply to Re^5: RFC: "assignary" operator ?= :
by shmem
in thread RFC: "assignary" operator ?= :
by richard.sharpe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |