lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, 22 Jun 2022 at 08:50, Flyer31 Test <flyer31@googlemail.com> wrote:
>
> On Wed, Jun 22, 2022 at 10:22 AM Egor Skriptunoff
> <egor.skriptunoff@gmail.com> 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?

-- 
Javier