Comment

Comment by dilap

I love that goal, and certainly one of the pleasures of working w/ Go is how often you don't have to hunt down a world of external dependencies.

That said, if I'm reading that code right, if I, say, decide to reorder a constant definition (say swap Aspirin and Ibuprofen), the Go code will still compile, but the string constants will be silently wrong until I realize I need to rerun go generate. No?

It's a problem in general: if I modify code that requires rerunning go generate, and I forget or don't realize I need to do it, I'm going to get at best a confusing compiler error, and at worst silently wrong code... Right?

Again, maybe this all works fine in practice, but to just brush off these concerns seems a bit glib...

parent dilap 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton