in bezier curves, lerping/lerp might be difficult to understand for newbies, even i thought ‘lerping’ was a typo and it should be changed to ‘looping’, but lerp was ‘linear interpolation’
Problem: table.move is poorly described in the api. It makes it sound as it it’s moving data from one table to another. Instead, it is creating a copy of the data onto the second table (as far as I can tell). This caused some memory leak issues from me poorly understanding that it’s not cleaning up its tracks.
Example code:
local T1,T2 = {5,7,3,6},{9,9}
table.move(T2,1,#T2,#T1+1,T1)
print(T1,T2) -- T2 still contains all the data
Proposed edit to API:
Instead of "Moves elements from table a1 to table a2"
It could be worded as: "Copies elements from table a1 to table a2", to make it more obvious that the data is still retained in a1 as well.
The highlighted parts have the wrong capitalization. It should be:
local DataStoreService = game:GetService("DataStoreService")
local experienceStore = DataStoreService:GetDataStore("PlayerExperience")
local setOptions = Instance.new("DataStoreSetOptions")
setOptions:SetMetadata({["ExperienceElement"] = "Fire"})
local success, errorMessage = pcall(function()
experienceStore:SetAsync("User_1234", 50, {1234}, setOptions)
end)
if not success then
print(errorMessage)
end
In the 534 Release Notes page, the second to last item under the Improvements section (which is about new table features) has links to the Roblox Education homepage which are probably not supposed to be there.
(I posted this before, but about the old wiki, before I knew this thread is only about the new, now that the new has documentation on table.move, it’s also incorrect, so I’m posting now with correct context):
Problem: table.move is poorly described in the api. It makes it sound as it it’s moving data from one table to another. Instead, it is creating a copy of the data onto the second table (as far as I can tell). This caused some memory leak issues from me poorly understanding that it’s not cleaning up its tracks.
Example code:
local T1,T2 = {5,7,3,6},{9,9}
table.move(T2,1,#T2,#T1+1,T1)
print(T1,T2) -- T2 still contains all the data
Proposed edit to API:
Instead of "Moves elements from table a1 to table a2"
It could be worded as: "Copies elements from table a1 to table a2", to make it more obvious that the data is still retained in a1 as well.