Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
previx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
previx
5y ago
If you're asking if macros and attributes are interchangeable terms, no they're not.
2.
▲
by
previx
5y ago
An annotation in Rust isn't a macro. The Go equivalent would be a directive in a comment. For example: //go:repr c https://pkg.go.dev/cmd/compile#hdr-Compiler_Directives