logoalt Hacker News

wrslast Sunday at 6:32 PM1 replyview on HN

I’m writing a lot of Rust lately, which is rapidly becoming regarded as a conventional language, and I sure do appreciate all those things I use every day that end in exclamation points.


Replies

GMoromisatolast Sunday at 7:09 PM

I'm curious here, because I don't know Rust. What's the difference between a macro and a function call from the caller's perspective? Do I (as the caller) need to know I'm calling a macro? Why?

Why is println! a macro when it's a function in almost all other languages?

show 1 reply