Skip to content

Conversation

@ccuser44
Copy link

Made it use type() instead of typeof() as type() should be used for vanilla types.

@lucasmz-dev
Copy link
Contributor

Why exactly should type() be used for vanilla types?

@ccuser44
Copy link
Author

ccuser44 commented Dec 15, 2021

Why exactly should type() be used for vanilla types?

Because typeof() exists for Roblox types.

type() is the type function for vanilla types, vanilla Luau uses type() for vanilla types and using typeof() for vanilla values is unnecessary deviation and should be avoided.

The name of the functions describe this intent too. Typeof tells which type of a Roblox userdata a value is, type tells what type a value is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants