Ozaki Kiichi wrote:

> Thank you for importing my patch.
> 
> BTW, I think that it is a better that the position of the return value
> {idx} is on the end than 2nd ([str, start, end, idx]), when 1st arg is
> list. There will be a better consistency with the case 1st arg is
> string.
> 
> https://gist.github.com/ichizok/176e7a759a12f87255fd9aaf3134e516
> 
> What are your thoughts on this?

Yeah, this is a draw between putting the more important value first
(index in the list) and consistency between results (putting start and
end position in postion 2 and 3 always).

For when using it I suppose doesn't matter much.  Perhaps it's a bit
easier to explain/understand when the list index comes last.

-- 
"The question of whether computers can think is just like the question
of whether submarines can swim."      -- Edsger W. Dijkstra

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

Raspunde prin e-mail lui