Hacker News new | past | comments | ask | show | jobs | submit login

If you are in a context where you are concerned about "privileged vs. unprivileged" code, you have to sandbox way more than that, and Lua provides you many mechanisms to control that (more than any other mainstream scripting language). Disabling the "debug" library which I used there for traversing block scopes is the very first thing one does when sandboxing in Lua.



At which point you can no longer use this fmt construct, so what was the reason for having it?


You can, privately within the module.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: