Sunday, December 6, 2020

Re: Vim9 dict key notation old fashion depreciated

Replacing by This seems good:

      \   networks:  { ['' .. string(currnetwork) ]: foo.undercursor.variable } 


Le dimanche 6 décembre 2020 à 19:27:47 UTC+1, Ni Va a écrit :
Is this notation below in red unavailable since recent Vim commits (upper to 8.2.2194) ?

s:higherInfos[apiFileLocation] = 
  \{ blockname: 
    \ { totalnetworks: totalnetworks, 
      \   blocknumber: blocknumber,
      \   networks:  { string(currnetwork): foo.undercursor.variable } 
     \} 
  \}


Le vendredi 4 décembre 2020 à 13:57:01 UTC+1, Bram Moolenaar a écrit :

> I'm not a cython or python expert but I'm working on a project that has
> this kind of code.
> It was just a reflection in the sense that for me vim9 script is
> precompiled as a cython and not as a python.
>
> The comparison for me has meaning between two pre-compiled languages. Out
> of mistake on my part.

It is comparing what is available inside Vim. I don't think cython can
be used as a Vim interface. If you compare with external programs,
write it in C, that's always faster.

--
In Africa some of the native tribes have a custom of beating the ground
with clubs and uttering spine chilling cries. Anthropologists call
this a form of primitive self-expression. In America we call it golf.

/// Bram Moolenaar -- Br...@Moolenaar.net -- 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_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5c235b38-7efa-48c0-a0e5-fc54661f687bn%40googlegroups.com.

No comments:

Post a Comment