Hi Bram,

On Wed, Mar 8, 2023 at 1:59 PM Bram Moolenaar <[email protected]>
wrote:

>
> Yegappan wrote:
>
> > * Add a macro to iterate over all the grow array items
>
> Hmm, I'm not sure this is really an improvement. There isn't any
> complexity that the macro takes care of, and it shortens the code only a
> little bit. A disadvantage is that it obscures what the for loop really
>

The macro makes it explicit that we are looping over all the items in a
grow array.
So it makes the intent of the loop more apparent (and it is used in many
places).


> does. And inlining the declaration of the loop variable would require
> another macro.
>

Yes.  With this macro, we cannot inline the loop variable declaration.

Regards,
Yegappan


>
> What do others think?
>
>
>

-- 
-- 
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/CAAW7x7nyp_S0A39z8dq6tZX96xZcxqBMZp0-OB6r%3D%2BczUOuz%2BQ%40mail.gmail.com.

Raspunde prin e-mail lui