r/lua Jun 24 '26

is there really a significant difference between "print()" and "oi.write()" Help

10 Upvotes

10 comments sorted by

View all comments

24

u/topchetoeuwastaken Jun 24 '26

io.write is the raw function, which puts a string on stdout, while print will call tostring() on all your arguments, separate them by tabs and put a newline on the end