On 23/08/24 9:22 PM, shane.qian wrote:
On 23/08/24 08:18PM, 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. So I have
implemented this using the "private" keyword.

Any opinions?

Thanks,
Yegappan
what's the time that 'todo' item added?
2022/02/08 bram had comment about that:
https://github.com/vim/vim/issues/9713#issuecomment-1031938822

Note that the 'todo' item is about class methods, not functions in general. The discussion where Bram brought up the question is January of 2023.

-ernie



--
--
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/433cd70a-44cf-1ffd-bfb1-32483a002701%40raelity.com.

Raspunde prin e-mail lui