Practical uses for the fenv Functions

I have recently learned how to use the fenv functions setfenv() and getfenv() and I was wondering what practical use they have in scripting. I have read about how they are used for sandboxing, but I don’t really know what that is. I was just wondering, are there any practical uses for them, or is there not ever a use for them?

Sandboxing refers to have processes running apart or in a protected way. There aren’t really any other use cases since these functions disable some of LuaU’s optimizations, so you shouldn’t be using them.

1 Like