Is it deprecated?

Is it deprecated to use “string”:split() instead of string.split(“string”, " ")?

They are literally the same function, the only difference is in ("string”):split(" ") self variable is assigned automatically where in string.split("string", " ") you have to define self by putting the string as the first argument. None of them are deprecated.

1 Like

In the : string methods I believe the Luau optimizations are not there, I recommend to use string. instead, but none of them are deprecated as far as I know.

2 Likes