-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generated code from is
doesn't valid its usefulness
#848
Comments
The top-level standard library modules ( |
Also, I wonder what's the practical use of |
strict.lua is another way to check the uses of undeclared global variables. It does the same kind of check as The idiom
So, my point of view is that with
|
I decided to solve this going the other way around, by automatically generating I don't want to make the user code dependent on the knowledge of what happens in the generated code (i.e. so that the fact that I'm considering adding a new |
here, an updated example after #854
the code generated with |
Since Lua 5.2,
local _ENV = nil
is a common idiom which avoids the use of globals.In this second version,
type(v) == 'string'
is generated fromv is string
,but the usefulness of
type
is not detected.The text was updated successfully, but these errors were encountered: