[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Uppercase-initial globals
- From: Javier Guerra Giraldez <javier@...>
- Date: Wed, 22 Jun 2022 09:08:48 -0500
On Wed, 22 Jun 2022 at 08:50, Flyer31 Test <email@example.com> wrote:
> On Wed, Jun 22, 2022 at 10:22 AM Egor Skriptunoff
> <firstname.lastname@example.org> wrote:
> > A question about Lua coding style.
> > Is it a good or bad idea to distinguish global from local variables by its uppercase / lowercase initial letter?
> > https://stackoverflow.com/questions/72710110/uppercase-or-lowercase-for-global-variables
> ... as I also use Visual Code for Coding (as your stackoverflow link),
> I adapted to this.
so, a given editor invents some "convention" (that i've never heard of)....
> Only thing which is a BIT nerving in Visual Code: It will signify the
> ":" operator as yellow curly error. (e. g. str:sub(1,4) will give
> yellow warning, string.sub(str, 1, 4) will be fine).
... but don't implement actual syntax
does it make any sense?