Hacker News new | ask | show | jobs
by mdp2021 628 days ago
> create an enum of every EU/EEA country and a switch statement over that enum

Sorry but if you then have to check that the list of the Countries is correct and complete, is it not faster to get a list from somewhere safe and then do your usual "Find-Replace" around the separator?

Edit: I just did it for a test: it took less than two minutes, without rush (search engine; open page; find data; open spreadsheet; paste table; paste column in text editor; find-replace around '\n').