diary at Telent Netowrks

On the eve of destructure#

Sun, 20 Dec 2020 00:03:13 +0000

Nothing, really, to say today, except that I have spent an hour or two trying (and mostly, failing) to find the Fennel equivalent of {table.unpack(tbl)}. Failing mostly because I accidentally had the LuaJIT version of Lua on my path ahead of the Lua 5.3 that I thought I was using, and as a result becoming more than mildly confused that table.unpack appeared to be missing anyway and oh this makes no sense what the hell is going on.

Having now tried it in a Lua 5.3 I discover that table.pack is a thing, wich is good, but that after all that the whole approach is worthless because they only work on array-like tables in the first place.

Some days are better than others, and today wasn't one of them.