r/lua • u/Lizrd_demon • Jun 17 '25
Discussion Personal standard - top level expression is _=<exp>
How bad of it is me to just use _= as my universal top level expression trick. No one's going to be using _ as variable.
I come from C. We do this hacky shit 24/7. But I wonder how it is by lua standards lol.
5
Upvotes
3
u/Averstarz Jun 17 '25
_ as a variable name is ised alot more than hello_i_am_a_variable_that_will_not_be_used_i_dont_want_conflicts_so_im_making_the_name_super_duper_long
Just sayin'
2
u/ShawSumma Jun 17 '25
I know nobody in C who does the underscore thing. Especially not setting key underscore in some global table structure.
1
u/Denneisk Jun 17 '25
What's the function of this..?