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.
So I have
implemented this using the "private" keyword.
Can "private" be used with members, in addition to prefixing "_"?
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.
-ernie
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/969ed3c5-c760-e743-d057-3b48f1f10b85%40raelity.com.