Talk:UPC

From Rosetta Code

go implementation

The go implementation currently doesn't quite accomplish the specified -- if I use the specified examples, I get invalid format when there are not exactly 9 spaces in the "quiet zone". This should be trivial to fix (just ignore the size of the quiet zone). --Rdm (talk) 21:54, 25 November 2019 (UTC)

I thought you meant that you'd started with 9 (or more) spaces but RC might not have faithfully reproduced that. Anyway, I've fixed it in the way you suggested and also improved the error reporting somewhat. --PureFox (talk) 22:47, 25 November 2019 (UTC)
Some entries have more, some have less. But, also, I took the original version, and added an extra leading space on one line and removed a leading space from another line, and both of those lines gave me an invalid format when I ran the code. Anyways, a fairly trivial issue, and thanks for fixing it. --Rdm (talk) 22:50, 25 November 2019 (UTC)