← Back to context

Comment by hnlmorg

15 hours ago

No. Feature flags are a mechanism for enabling some of the experiments. But what’s being discussed here are the features themselves.

Hm, that's interesting; chrome://flags does seem to be titled "Experiments"... After, of course, you type "flags" into the address bar to get there. I guess I can see a distinction there, but it's pretty subtle.

  • This has nothing to do with Chrome.

    This is Go (golang). It’s not even the same language used in the development of Chrome.

    And the reason I make the distinction between feature flags and this is because some of the “experiments” discussed in the article are new packages / modules. So you’re not changing compiler behaviour via a flag or env var. You’re just importing a new package that isn’t yet considered stable.

    • I think the way Google handles flags/experiments in one project (Chrome) is very relevant to interpreting the language around how they handle flags/experiments in another project (Go).

      And I'm pretty sure that their example is that importing "encoding/json/v2" doesn't work until you tell the compiler to enable it via environment variable.