x["y"] can be written as x.y, which looks better and is a more typical
lua idiom.
Sponsored by: Netflix
Differential D39709
makesyscalls.lua: Make more luaish imp on Apr 20 2023, 3:58 AM. Authored by Tags None Referenced Files
Subscribers None
Details x["y"] can be written as x.y, which looks better and is a more typical Sponsored by: Netflix cd sys/kern should show nothing (or only changes to sys/tools/makesyscalls.lua)
Diff Detail
Event TimelineComment Actions Seems reasonable to me; I have two requests that aren't really related to this change, though it'd be nice if you could include them or just smack them in a follow-up so that I don't conflict with your work. They're luacheck-noted issues (unknown global line and unused arg comment)
Comment Actions Two things: 1. Mind if I do that as a followup commit? 2. Where is this luacheck obtained? Comment Actions Yeah, feel free! iuacheck is available in ports, devel/lua-luacheck, or as the lua54-luacheck pkg. I try to keep our lua scripts luacheck clean, it has just about the right level of nagging about poor form. |