Re:New string formatting in Python
by kedean on Sunday January 03, 2016 @11:27PM
(#10833990)
I'd argue that it's not a good thing that you can just disregard block scoping willy-nilly from within unprivileged code.
[ Parent
| on HN ]
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?