Well, it seems silly I suppose, but the primary reason was just for readability. The constant string I'm using is the opening tag for a custom text specifier, and the code then searches for a specific character in the string at the textspecifier.length index of the string. While I realized I could just use TextSpecifer.length in it's place, I thought using a constant that was set to the length of the text specifier would be more readable, and would automatically update if I changed the text specifier string.
Not really needed (and the workaround is simple) but I just stumbled across it and thought I'd ask.
Not really needed (and the workaround is simple) but I just stumbled across it and thought I'd ask.