Hi,
2019/7/15 Mon 1:23:21 UTC+9 Bram Moolenaar wrote:
> Patch 8.1.1692
> Problem: Using *{} for literal dict is not backwards compatible. (Yasuhiro
> Matsumoto)
> Solution: Use ~{} instead.
> Files: runtime/doc/eval.txt runtime/doc/popup.txt, src/eval.c,
> src/testdir/test_listdict.vim src/testdir/test_popupwin.vim,
> src/testdir/dumps/Test_popupwin_07.dump,
> src/testdir/dumps/Test_popupwin_mask_2.dump,
> src/testdir/dumps/Test_popupwin_mask_3.dump,
> src/testdir/dumps/Test_popupwin_mask_4.dump,
> src/testdir/dumps/Test_popupwin_mask_5.dump,
> src/testdir/dumps/Test_popupwin_scroll_2.dump,
> src/testdir/dumps/Test_popupwin_scroll_3.dump,
> src/testdir/dumps/Test_popupwin_scroll_4.dump
I personally prefer #{} than ~{}.
'~' is used as a bitwise not operator in C. So, when I see ~{}, I would doubt
if it is a bitwise not of {}. (Vim script doesn't have a ~ operator, though.)
Dictionary is called as hash in some other languages, and # is also called
hash. So, #{} might be easy to remember. And I don't think that #{} have a
compatibility problem.
Regards,
Ken Takata
--
--
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/206adb15-dd61-46b2-86f2-e996f390be77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.