lua-users home
lua-l archive

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


On 1/28/2018 11:02 PM, Paige DePol wrote:
Dibyendu recently started a discussion about wether or not Lua has reached
perfection. Of course, this will be a subject highly dependant on the need
and opinions of each user of Lua.

On that same discussion topic the desire for a switch/case like construct
in Lua came up... so I thought I would start a new discussion thread to
see what features people would like to see added to vanilla Lua.

Here is an analogy to support the notion of switch/case as a sort of mental model: A recipe is mostly written as a list of steps, mostly serial, but there can be decision making and branches too. A time-table is instead tabulated, steps can be laid out in various ways in a compact form; a person can see and grasp the entire time-table easily.

Of course, it's not a perfect analogy, but it's an illustration of a kind of structure that we apply to information so that we can better manage it. Everybody is clear about the structure of math. Here we are dealing with the structure of information that is the code we are writing.

So, if you could add any one feature to Lua right now, what would that
feature be and why would you want to see it added? Please note that this
discussion is in no way meant to be interpreted as pressuring Team Lua to
add any features to Lua, I am genuinely curious what features people want
to see added to Lua and why.

My interest in this subject isn't just academic, however, I may take some
of these ideas on board to add to my hard fork of Lua. If so, I would also
create patches for vanilla Lua as well! :)


--
Cheers,
Kein-Hong Man (esq.)
Selangor, Malaysia