3 ms·
I really really don't want to do type annotations. I just want to know about: variable = 1 print(varaible) It's been a while since I did Lua, but there's
by arp242 2y ago
I really really don't want to do type annotations. I just want to know about:
variable = 1
print(varaible)
It's been a while since I did Lua, but there's been a few cases where this caused massive confusion.
Last I checked I couldn't really find a good way to do that; but like I said: it's been a while.
- edflsafoiewq 2y agoLuacheck will warn about unknown globals.
- pseudo_meta 2y agoI think every lua linter warns about that. So does the Lua LSP, no annotations needed.
- CRConrad 2y agoWell, yeah, you shouldn't name your variables so similarly, that's what's causing he confusion. Idunno, maybe varaible is set to "Let's groove, baby!" ? ;-)