History of 2022-10-03 Converting words and sentences to identifiers

2022-10-03
21:07 UTC Revision 1 . . . . mborkPreview: Some time ago I had a need to “convert” a phrase, or even a whole sentence, into an identifier. By “converting to an identifier” I mean lower-casing the whole thing and changing non-letter characters into underscores. For example, “Hello, world!” should become hello_world. I came up with some simple code to do that – but it turned out that there were some pitfalls I did not expect.