Why do I need pairs?

if

for i,v in workspace:GetChildren() do
print(i,v)
end

works just fine
then why would I need

for i,v in pairs(workspace:GetChildren()) do
print(i,v)
end

This feature is still in beta. This is a somewhat recent Roblox addition, if you check the beta features tab, you could enable that, although I’m not sure if it works without enabling that. All I know is that it’s in Beta

1 Like

would you suggest I use it? I personally want to.
would it be all fine? or should I refrain from it. If it’s in beta it’s bound to become a feature at one point no?

I personally DO use it and I haven’t seen any side effects so, you should be fine

1 Like

I don’t believe this is in beta; I’ve used this in production code and it works fine

1 Like

Well, it’s in the Beta tab, does it work yes, does that mean it’s not in beta, no. I’m not 100% sure as I mentioned but it’s in the Beta features tab so I assume it’s still in beta

1 Like