Hi Bram,

On Sun, Jul 21, 2019 at 5:49 AM Bram Moolenaar
<[email protected]> wrote:
>
> I find this operator rather obscure, I can't find it in popular languages.
> Also, it's easy enough to use the "if" construct. It's more lines, but it's 
> easier to understand.
> I also haven't heard anyone ask for this, and suspect it won't be used much 
> because plugin developers do not know it exists.
> Keeping the Vim script language simple is more important, in my opinion.
>

In that case, the following item needs to be removed from the todo list:

-   Add ":let var ?= value", conditional assignment.  Patch by Dave Eggum,
    2006 Dec 11.

I found that only Ruby has an operator (||=) for the default assignment.
Other languages are referring to using the ternary operator for this.
In these cases, the operator is used only in the RHS expression.

- Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7%3Dridx7VhoK9-vRAzc%3D3fE%3DbQAmWNMK-ea%2B8Sod%2Bg-WXg%40mail.gmail.com.

Raspunde prin e-mail lui