You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be a minor nit, but it would be nice if you could specify the number of required arguments when calling vararg_scalar_fn_overloads, rather than requiring vararg functions that define overloads with this function to always have 1 required argument. Of course, you can always define your own helper function for this purpose, but it avoids duplicating this logic into your own code if this function can be made more flexible.
Right now this behavior isn't documented by this function at all; you need to read the source to understand that this creates variadic overloads where 1 argument is required, but no overload for 0 args. This took me by surprise when I was exploring how to resolve scalar functions by id + overload and how to define scalar functions.
The text was updated successfully, but these errors were encountered:
This might be a minor nit, but it would be nice if you could specify the number of required arguments when calling
vararg_scalar_fn_overloads
, rather than requiring vararg functions that define overloads with this function to always have 1 required argument. Of course, you can always define your own helper function for this purpose, but it avoids duplicating this logic into your own code if this function can be made more flexible.Right now this behavior isn't documented by this function at all; you need to read the source to understand that this creates variadic overloads where 1 argument is required, but no overload for 0 args. This took me by surprise when I was exploring how to resolve scalar functions by id + overload and how to define scalar functions.
The text was updated successfully, but these errors were encountered: