Hello,
What would be the most performant code between those two?
function Table:A(Part, pos) Part.Position = pos end
function Table:A(pos) self.Part.Position = pos end
Thx for reading
It seems unnecessary to pass Part as an argument if the class has a dedicated Part referenced, so I’d go with #2, although this should be Table:A(pos) or Table.A(self, pos), if you’ve used Table.new to instantiate the class.
Table:A(pos)
Table.A(self, pos)
Table.new
Alright thx ! And yeah I forgot to put : ^^