Comment by int_19h 5 months ago https://doc.rust-lang.org/std/macro.format.htmlhttps://zig.guide/standard-library/formatting/ 2 comments int_19h Reply notmywalrus 5 months ago Rust is an example of "compiler magic" in this case.You're right about Zig, and reading the source [1] I'm still kind of impressed how unified they made comptime / runtime.[1]: https://github.com/ziglang/zig/blob/32a1aabff78234b428234189... int_19h 5 months ago "Compiler magic" is generally used to describe things that are built into the compiler; I don't see why macros would qualify. And if they do, then why wouldn't template metaprogramming?
notmywalrus 5 months ago Rust is an example of "compiler magic" in this case.You're right about Zig, and reading the source [1] I'm still kind of impressed how unified they made comptime / runtime.[1]: https://github.com/ziglang/zig/blob/32a1aabff78234b428234189... int_19h 5 months ago "Compiler magic" is generally used to describe things that are built into the compiler; I don't see why macros would qualify. And if they do, then why wouldn't template metaprogramming?
int_19h 5 months ago "Compiler magic" is generally used to describe things that are built into the compiler; I don't see why macros would qualify. And if they do, then why wouldn't template metaprogramming?
Rust is an example of "compiler magic" in this case.
You're right about Zig, and reading the source [1] I'm still kind of impressed how unified they made comptime / runtime.
[1]: https://github.com/ziglang/zig/blob/32a1aabff78234b428234189...
"Compiler magic" is generally used to describe things that are built into the compiler; I don't see why macros would qualify. And if they do, then why wouldn't template metaprogramming?