I've never really understood why people choose to use next over pairs and vice versa. Was hoping to find an answer here, thanks. :)
COMMUNITY QUESTION
Which is Better: Pairs or Next Loop?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
I think pairs is better, The last time I used next, I cant make I wanted.
Imo it's up to personal preferance. However, interestingly,
pairsusesnext. https://www.lua.org/pil/7.3.htmlI've never used next directly... always pairs. Locking this question since it can technically be closed, but at the same time not. (Also, you got your answer)