#Lua disappoints me. Like, what’s the use in metatables if I can’t even attach one to a number or a function? Asking because I want to implement my functional threading operator in Lua (by redefinition __shr/>> operator), and it just... doesn’t come together?
You can attach stuff to numbers and functions in #JavaScript, which is much better (my operator is not implementable in #JS, but that’s for a different reason.) You can attach metadata (including functions) to ANYTHING in #Clojure. But not in Lua, apparently. Sigh.