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?
>>
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
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
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
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'
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
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,
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
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 "_"
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
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()
>>
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()
> >
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
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?
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
15 matches
Mail list logo