Hacker News new | ask | show | jobs
by smallnamespace 41 days ago
> the compiler will flag all pattern matches that you need to update

At Google, the bottleneck is that a team changing a commonly used enum will not know how to update all the broken use sites, since it can be affecting dozens or hundreds of teams.

It is better to decouple the enum change from the use site change and let consuming teams update on their own schedule.

1 comments

I am not familiar with this flag, but will it force, or at least alert these " consuming teams" that the enum they expected has changed?
No, but Google already has internal tools that can identify use sites and email affected teams.

Note that teams generally manage their own deployments, so even a repo wide code change doesn’t force the update of an older deployed binary.