Re: Support for Private class/object methods

2023-08-27 Fir de Conversatie Doug Kearns
On Fri, 25 Aug 2023 at 15:21, Ernie Rael wrote: > On 23/08/24 9:10 PM, Doug Kearns wrote: > > On Fri, 25 Aug 2023 at 13:18, Yegappan Lakshmanan > wrote: > >> Hi all, >> >> The following item is in the todo.txt file for implementing private >> methods in a class: >> >> - Private methods? >>

Re: Support for Private class/object methods

2023-08-26 Fir de Conversatie shane.qian
uot;public" and "private" together, > > > or no modifier keyword at all. In the latter case an underscore indicates > > > private class members and > > > methods whereas public ones don't have an underscore. > > > > > > > I prefer usin

Re: Support for Private class/object methods

2023-08-26 Fir de Conversatie shane.qian
es > > private class members and > > methods whereas public ones don't have an underscore. > > > > I prefer using the underscore character to differentiate between > public and private methods. > I will create a PR to add support for private object/class meth

Re: Support for Private class/object methods

2023-08-25 Fir de Conversatie Yegappan Lakshmanan
On Fri, Aug 25, 2023 at 3:50 PM Ernie Rael wrote: > > On 23/08/25 2:07 PM, bfrg wrote: > > If "public" is omitted, shouldn't class members and method be private by > default just like "def" functions and script variables are script-local by > default unless prefixed with "export"? > > In

Re: Support for Private class/object methods

2023-08-25 Fir de Conversatie Yegappan Lakshmanan
whereas public ones don't have an underscore. > I prefer using the underscore character to differentiate between public and private methods. I will create a PR to add support for private object/class methods. > > And another issue: why isn't this thread shown in GitHub Discussions? Wasn'

Re: Support for Private class/object methods

2023-08-25 Fir de Conversatie Ernie Rael
On 23/08/25 2:07 PM, bfrg wrote: If "public" is omitted, shouldn't class members and method be private by default just like "def" functions and script variables are script-local by default unless prefixed with "export"? In general, I would also like it to be symmetric. So, either introducing

Re: Support for Private class/object methods

2023-08-25 Fir de Conversatie bfrg
If "public" is omitted, shouldn't class members and method be private by default just like "def" functions and script variables are script-local by default unless prefixed with "export"? In general, I would also like it to be symmetric. So, either introducing "public" and "private" together,

Re: Support for Private class/object methods

2023-08-25 Fir de Conversatie Ernie Rael
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

Re: Support for Private class/object methods

2023-08-25 Fir de Conversatie shane.qian
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 "_"

Re: Support for Private class/object methods

2023-08-24 Fir de Conversatie Ernie Rael
On 23/08/24 9:10 PM, Doug Kearns wrote: On Fri, 25 Aug 2023 at 13:18, 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

Re: Support for Private class/object methods

2023-08-24 Fir de Conversatie Yegappan Lakshmanan
Hi, On Thu, Aug 24, 2023 at 9:11 PM Doug Kearns wrote: > > On Fri, 25 Aug 2023 at 13:18, 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() >>

Re: Support for Private class/object methods

2023-08-24 Fir de Conversatie Yegappan Lakshmanan
Hi, On Thu, Aug 24, 2023 at 8:50 PM Ernie Rael 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() > >

Re: Support for Private class/object methods

2023-08-24 Fir de Conversatie Doug Kearns
On Fri, 25 Aug 2023 at 13:18, 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

Re: Support for Private class/object methods

2023-08-24 Fir de Conversatie Ernie Rael
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?

Support for Private class/object methods

2023-08-24 Fir de Conversatie Yegappan Lakshmanan
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