Yegappan wrote:
> On Sun, May 22, 2022 at 11:14 AM Bram Moolenaar <[email protected]> wrote: > > > > Patch 8.2.5003 > > Problem: Cannot do bitwise shifts. > > Solution: Add the >> and << operators. (Yegappan Lakshmanan, closes #8457) > > > > Now that we have the support for the bitwise shift operators, should > we add the support for the bitwise and (&), or (|) and xor (^) > operators (like other popular languages)? > But we do have the and(), or() and xor() builtin functions for these > operations though. The reason we made these functions is that at least "|" already has a meaning and it can't be used in legacy script. There might be ways to use the operators in Vim9 script, but it quickly becomes inconsistent. And the functions have existed for a longer time, having two ways also isn't good. -- hundred-and-one symptoms of being an internet addict: 10E. You start counting in hex. /// 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/20220523110214.479F91C0425%40moolenaar.net.
