Hi, On Thu, Aug 24, 2023 at 8:50 PM Ernie Rael <err...@raelity.com> wrote: > > On 23/08/24 8:18 PM, Yegappan Lakshmanan wrote: > > Hi all, > > > > The following item is in the todo.txt file for implementing private > > methods in a class: > > > > - Private methods? > > either: private def Func() > > or: def _Func() > > Perhaps use "private" keyword instead of "_" prefix? > > > > Function and method names always start with an uppercase letter. So > > if we use the > > "_" prefix for a private method name then it will diverge from that. > > That's mostly a parsing issue? The requirement becomes _[A-Z] means private. >
Yes. It is a parsing issue. Using the "_" prefix for both private members and methods will make it symmetric though. > > > So I have > > implemented this using the "private" keyword. > > Can "private" be used with members, in addition to prefixing "_"? > We can make changes to support the "private" keyword for members also. > > > Any opinions? > I'm personally OK with "private", and happy to avoid the parsing > hassles. Would like to see it usable with class/instance members. > Let me see whether we can support using the "_" prefix for private methods. Thanks, Yegappan -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAAW7x7%3DcCempeBm2aW%3DP6%3DyjWdYTVJ_w8bXNZyfor6OuiiwB9g%40mail.gmail.com.