I wrote:
> Patch 8.1.1683
> Problem: Dictionary with string keys is longer than needed.
> Solution: Use *{key: val} for literaly keys.
> Files: runtime/doc/eval.txt, src/eval.c, src/dict.c,
> src/proto/dict.pro,
[...]
> *** ../vim-8.1.1682/runtime/doc/eval.txt 2019-07-13 21:18:51.464469580
> +0200
> --- runtime/doc/eval.txt 2019-07-13 22:39:40.659418070 +0200
> ***************
> *** 58,64 ****
>
> Dictionary An associative, unordered array: Each entry has a key and a
> value. |Dictionary|
> ! Example: {'blue': "#0000ff", 'red': "#ff0000"}
>
> Funcref A reference to a function |Funcref|.
> Example: function("strlen")
> --- 58,66 ----
>
> Dictionary An associative, unordered array: Each entry has a key and a
> value. |Dictionary|
> ! Examples:
> ! {'blue': "#0000ff", 'red': "#ff0000"}
> ! *{blue: "#0000ff", red: "#ff0000"}
>
> Funcref A reference to a function |Funcref|.
> Example: function("strlen")
I thought that using *{} would be OK. But I'm open to other
suggestions. I could not find anything similar in other languages.
--
TALL KNIGHT: When you have found the shrubbery, then you must cut down the
mightiest tree in the forest ... with a herring.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ 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/201907132054.x6DKsxxx011492%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.