lua-users home
lua-l archive

Re: godawful sh/Lua polyglot

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


On 2020年08月12日 14:47, Philippe Verdy wrote:
"Polyglot programs" are useful in many contexts, notably for
sharing some common settings in a centralized place
The way I use it is to store table data in a way which is both Lua and Python compatible, and have comments in both Lua and Python. For example: https://github.com/samboy/covid-19-html/blob/master/stateNameAbbr.lua
— Sam

AltStyle によって変換されたページ (->オリジナル) /