expression type which enables variable argument functions #132
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
Milestone
Here is my proposal for an expression type which makes it possible to have variable argument functions. It requires a lot of advanced stuff that isn't implemented yet, such as:
@eval
to evaluate the expression.@can_implicit_cast
the idea of this builtin is to tell you if an implicit cast is allowed. but this will probably be replaced by having the template string contain the types just like C's printf.So, with this example, calling
os.printf("int: % string: %", 3, some_string);
would effectively result in this code, after inlining the function calls:io.zig
main.zig
The text was updated successfully, but these errors were encountered: