Default Arguments
During a function declaration, parameters can now declare their own default value.
Example Codepluto
local function write(text = "No text provided.")print(text)endwrite() --> "No text provided."write("Hello!") --> "Hello!"
This code behaves identically.pluto
local function write(text)if text == nil thentext = "No text provided."endprint(text)endwrite() --> "No text provided."write("Hello!") --> "Hello!"