Sergey Vlasov wrote:

> With the proposed API there is no way to know what portions of the
> input are matched.
> 
> ```
> Example: >
>     :echo matchfuzzy(['clay', 'crow'], "cay")
> <             results in ['clay']. >
> ```
> 
> It would be more useful to also return the start position and the end
> position of the match, similar to `matchstrpos()`:
> 
> ```
> [
>     ["clay", 
>         ["c", 0, 0],
>         ["ay", 2, 3]
>     ]
> ]
> ```

That makes it a lot more complex.  What is the practical use for the
match positions?

-- 
A special cleaning ordinance bans housewives from hiding dirt and dust under a
rug in a dwelling.
                [real standing law in Pennsylvania, United States of America]

 /// 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/202009141438.08EEcGAQ1649514%40masaka.moolenaar.net.

Raspunde prin e-mail lui