> I've never use vimscript, or the `=` that I see around occasionally. > From my perspective, whatever is consistent with what I'll see in > vim9script is best; `:help script` explains vim9. Consistency with > vim9 seems paramount. IMO, if the `=` is required in vim9 in > situations, then OK; otherwise nuke it.
Using backticks to execute an expression is a more or less wide spread syntax. On the command line this has been used in places where expanding $VAR is insufficient, and uses the shell to evaluate the expression. I believe other programs also support using backticks to expand an expression, possibly with the shell. Later we wanted to use a Vim expression, which is where `=expr` was introduced. I don't think any other application does this. So we can choose here to be more similar to other applications, just using backtics, or be consistent with what is done on the command line, using `=expr`. I can't really think of a reason for one or the other. One slight advantage of using `=expr` is that backticks can be used anywhere, only `= is special, which should be quite rare. -- hundred-and-one symptoms of being an internet addict: 10. And even your night dreams are in HTML. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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/20220417172830.103C71C03BA%40moolenaar.net.
