Are there type parameters? #917
davidgiven
started this conversation in
General
Replies: 1 comment
-
Luau doesn't support explicit generic type parameters on functions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So Luau supports generic functions:
T
is inferred automatically from when the function is called.Is it possible in Luau to specify
T
explicitly when calling the function? e.g. something like:(that's Java syntax, which is clunky because using
<>
as delimiters is ambiguous with using them as operators in most contexts)Beta Was this translation helpful? Give feedback.
All reactions