lua-users home
lua-l archive

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


Em Qui, 20 de jun de 2019 02:40, Egor Skriptunoff <egor.skriptunoff@gmail.com> escreveu:
On Fri, Jun 14, 2019 at 11:22 PM Viacheslav Usov wrote:
This is probably bikeshedding, but:
local (x scoped), (y const), (z const alias) = a, b, c



This is a nice bikeshedding!
From aesthetic point of view, it looks more pleasant than other possible syntax such as <const>, @const and :const

+1

As a 'per Name' syntax, but 'scoped' is not a good word.


Maybe, it could be extended to a 'per type' 'local'

(local const) x, y, z =...

Where x, y and z are all 'const'.