Re: [vim/vim] Refined autoload mechanism explanation (PR #20833)
ubaldot (Vim Github Repository) <[email protected]>
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/pull/20833/[email protected]> |
ubaldot left a comment (vim/vim#20833) > On 1, "without using globals": that works as well. Same structure as 52.4, one > file, no g: anywhere, with a script-local def: I can buy it, but mind that you are using a global symbol, whereas 52.4 use a script-local symbol. > One remark on the additional file, though. A separate script under autoload/ > is the normal layout for Vim plugins, and close to all of them are written that > way, so it is the convention rather than an extra cost. But mind what the docs of 52.4 says: ``` Some may find the use of several files [a](https://vimhelp.org/insert.txt.html#a) hassle and prefer to keep everything together in one script ``` I (partially) agree with your point. I also prefer use multiple files, but not in `autoload/`. I value encapsulation. But regardless of our own personal preferences, we cannot neglect what is written in the docs or what other users want to do. -- Reply to this email directly or view it on GitHub: https://github.com/vim/vim/pull/20833#issuecomment-5089178868 You are receiving this because you are subscribed to this thread. Message ID: <vim/vim/pull/20833/[email protected]> -- -- 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 visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20833/c5089178868%40github.com.