Comment

Comment by cfallin

That signifies a macro. It's meant to visually distinguish macros from ordinary function calls because macros may have arbitrary semantics (they can expand into any code at all). The stdlib defines `println` as a macro because it allows for a neat compile-time parsing of format strings.

(See [1] and the linked source if curious.)

[1] https://doc.rust-lang.org/std/macro.println!.html

parent cfallin 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton