UPDATE: Be sure to read Peli’s post in which he explores all of these implementations using PEX. Apparently I have a lot more unit tests to write in order to define the expected behavior of the code. I recently wrote a post in which I examined some existing implementations of named format methods and then described the fun I had writing a routine for implementing named formats. In response to that post, I received two new implementations of the method that are worth calling out. The first was sent to me by Atif Aziz, who I’ve corresponded...
DOUBLE UPDATE! Be sure to read Peli’s post in which he explores all of these implementations using PEX. Apparently I have a lot more unit tests to write in order to define the expected behavior of the code. UPDATE: By the way, after you read this post, check out the post in which I revisit this topic and add two more implementations to check out. Recently I found myself in a situation where I wanted to format a string using a named format string, rather than a positional one. Ignore for the moment the issue on whether this...