News for hackers. Stuff that matters.
Re:Go generate: A proposal for a Go preprocessor by pcwalton on Saturday September 27, 2014 @09:44AM (#8377005)
Rust can.
Re:Go generate: A proposal for a Go preprocessor by tuxychandru on Saturday September 27, 2014 @01:28PM (#8377606)
Are you referring to compiler plugins like the one providing regex! macro or is it something else?
Re:Go generate: A proposal for a Go preprocessor by wycats on Saturday September 27, 2014 @02:48PM (#8377825)
Yes, compiler plugins. For a relevant example, check out the Rust docopt crate[1].

An identical technique could be used for yacc or protobufs.

[1]: https://github.com/docopt/docopt.rs