-
Notifications
You must be signed in to change notification settings - Fork 1k
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
question about Lua variables #3509
Comments
IMO no |
It does not make any sense in |
I'd personally go for more clear declaration such as:
the code is more readable for someone who isn't familiar with lua and time to execute differences are so small they don't matter if any exist another supporting argument is that I don't see variables being declared this way May be a bit unrelated, but this was Mark's opinion on a very short dice.lua I've wrote back in 2014: and the file he commented on: |
yes I agree, feel free to create a PR for the music one thought |
I loaded tfs folder to vs code and the editor shits itself with warnings because second value in this kind of declaration is nil:
examples of occurences:
forgottenserver/data/scripts/actions/tools/check_bless.lua
Line 13 in e4f02e2
forgottenserver/data/actions/scripts/other/music.lua
Line 38 in e4f02e2
forgottenserver/data/scripts/actions/others/clay_lump.lua
Line 11 in e4f02e2
should this be corrected?
The text was updated successfully, but these errors were encountered: