Why `local print = print` in Lua?

Viewed 104

While learning from third party's Lua code, I found at the top of the main script file

local insert = table.insert
local match = string.match
local gsub = string.gsub

I understand these chunks as shortcut definitions, but I also found

local assert = assert
local ipairs = ipairs
local print = print

What is the purpose of these last instructions ?

2 Answers
Related