Open andr-ew opened 9 months ago
better clarity for lua newcomers. I don't think any of it is particularly neccesary (i.e. for defualt props, use props.thing = props.thing or default_value)
props.thing = props.thing or default_value
performance might be a downside ? a bunch of assignments vs. one setmetatable
setmetatable
or could use tab.gather - more descriptive than setmetatable imo, and less typing than manual assignment
tab.gather
better clarity for lua newcomers. I don't think any of it is particularly neccesary (i.e. for defualt props, use
props.thing = props.thing or default_value
)