How could I make variadic function in ReScript?

I can use @variadic for interop

@val @variadic external log: array<string> => unit = "log"

log(["this", "page", "is", "not", "found"])

but can I make function with variadic arguments in rescript?

In theory, you could do it in a continuation passing style, but that’s too complicated to recommend.
I would recommend you to just pass it as an array instead, it is not necessarily slower than variadic arguments

Yes, you are right, but if I want write some adapter for iterop function for JS I will break interface.
Also if I will replace some module in JS app on ReScript, I must save backward compatibility.
I think that it’s not good in ReScript for use, but it needs for iterop.

Thank you for your prompt response!