Hi,

On Sun, Mar 17, 2019 at 6:44 AM Bram Moolenaar
<[email protected]> wrote:
>
>
> > @brammool
> > > I don't think it is needed to use a dictionary argument. We can use a
> > list of strings, that is simpler:
> > [...]
> >
> > I made it a dictionary because I referred to `{what}` of
> > `getqflist()`, but the list is good for this API.
>
> The getqflist() function has some arguments with a number value. E.g.
> "nr" specifies the quickfix list. For complete_info() I don't think we
> would ever have a number value, only a list of items to return.
>

Yes. The getqflist() function also accepts values for the following
arguments in {what}:

id        quickfix list identifier
lines   List of lines to parse
efm    Error format to use for parsing the list of lines in 'lines'
nr       quickfix list number

As the caller can pass non-zero values for these items, the
getqflist() function uses a Dictionary instead of a List as the
argument type.

- Yegappan

> I think that consistency between these two functions is not relevant.
>

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui