You are viewing a single comment's thread from:RE: A short list of gripes I have with lua as a languageView the full contextslashformotion (55)in #programming • 5 years ago That's funny, at first glance, it looks like python code
tbh it kind of functions that way implicitly its when you have functions inside of functions in a callback like structure
myRightClickLabel:setMenuAction("Drink.ManaPotion", function() cecho("<blue>Drinking my mana potion.\n") send("drink mp") end )
Where stuff gets messy because of the "end"