How to spread slices into veriadic functions? #114
-
|
I tried to do some database stuff using query builders like squirrel. Query builders often return the sql string and an arguments slice. I could not find any documentation how to pass those arguments to the query functions. Is it possible to spread slices into veriadic functions in lisette? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Spreading a slice into a variadic call is not yet supported. The workaround is to pass arguments individually if you know them at compile time, but for dynamic slices from query builders this is impractical. Tracking as #118, aiming to address this soon. |
Beta Was this translation helpful? Give feedback.
Spreading a slice into a variadic call is not yet supported. The workaround is to pass arguments individually if you know them at compile time, but for dynamic slices from query builders this is impractical. Tracking as #118, aiming to address this soon.