You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would find it useful if typedlua allowed defaults for arguments; this often is useful for being able to specify a more restrictive type, e.g. "string" instead of "string?"
function f(x:string="something"): string
return x..x
end
instead of
function f(x: string?): string
if x==nil then x = "something" end
return x..x
end
The text was updated successfully, but these errors were encountered:
I would find it useful if typedlua allowed defaults for arguments; this often is useful for being able to specify a more restrictive type, e.g. "string" instead of "string?"
instead of
The text was updated successfully, but these errors were encountered: