Get used to writing your functions using objects for the arguments:
function myFunc({ foo, bar }) {}
function myFunc({ foo: 1, bar: "x" })
struct MyFuncArgs { int foo; char bar; }; void myFunc(MyFuncArgs args) {} myFunc({ .foo = 1, .bar = 'x' });
Get used to writing your functions using objects for the arguments:
Then you can call Similarly in C/C++