15 points vinhnx 1 hour ago 2 comments
TheCycoONE 4 minutes ago | parent
For better or worse CorsixTH makes extensive use of these techniques, as the config format [1], the translation format [2], and even the format for the update check [3]
[1] https://github.com/CorsixTH/CorsixTH/blob/master/CorsixTH/Lu...
[2] https://github.com/CorsixTH/CorsixTH/blob/master/CorsixTH/Lu...
[3] https://github.com/CorsixTH/CorsixTH/blob/gh-pages/check-for...
binary132 3 minutes ago | parent
It’s also pretty nice that a verb plus a table is implicitly a function call. This means you can easily do things that seem to be types:
m = Menagerie { Dog { tail, ears, snout=long }, Cat { you, get, the=idea }, table.unpack(ark), }