HNHacker News
TopNewBestAskShowJobs

previx

9 karma · joined January 10, 2022

submissionscomments
previx··on Saving a Third of Our Memory by Re-Ordering Go Struct Fields (2020)
If you're asking if macros and attributes are interchangeable terms, no they're not.
previx··on Saving a Third of Our Memory by Re-Ordering Go Struct Fields (2020)
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