alamb closed issue #10397: Reduce repetition in datafusion::functions using
macros
URL: https://github.com/apache/datafusion/issues/10397
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific
alamb commented on issue #10397:
URL: https://github.com/apache/datafusion/issues/10397#issuecomment-2096780294
Specifically, I think @jayzhan211 found a nice solution on the rust forums:
>
https://users.rust-lang.org/t/macro-repetition-with-multiple-rules/110816/2?u=jayzhan
>
alamb opened a new issue, #10397:
URL: https://github.com/apache/datafusion/issues/10397
I think it is possible to take `Vec` like what functions-array
macro does
```rust
($UDF:ty, $EXPR_FN:ident, $DOC:expr , $SCALAR_UDF_FN:ident) => {
paste::paste! {