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
Validate and unpack function arguments tersely (#14513)
* Validate and unpack function arguments tersely
Add a `take_function_args` helper that provides convenient unpacking of
function arguments along with validation that the provided argument
count matches the expected. A few functions are updated to leverage the
new pattern to demonstrate its usefulness.
* Add example in rust doc
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* fix fmt
* Export function utils publicly
this exports only the newly added take_function_args function. all other
utils members are pub(crate)
* use compact format pattern
Co-authored-by: Matthijs Brobbel <m1brobbel@gmail.com>
* fix example
* fixup! fix example
* fix license header
Co-authored-by: Oleks V <comphead@users.noreply.github.com>
* Name args in nvl2 and use take_function_args in execution too
---------
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Co-authored-by: Matthijs Brobbel <m1brobbel@gmail.com>
Co-authored-by: Oleks V <comphead@users.noreply.github.com>
0 commit comments