On Feb 2, 2009, at 2:56 PM, Gregory Maxwell wrote: “What you really want, as far as I can tell, is string functions, not math.”
Yes, yes, yes, Gregory. For StringFunction to work, or some other string function subset. Someone please do tell: how hard is it for a programmer to figure out a character-cannon parser function? I am no programmer, but my guess is that StringFunction probably crumbled like a piece of Microsoft Bloatware due to trying to make it be a do-all, end-all tool.
I should think that since regular editors shouldn’t have to put a pipe where a decimal place is in a numeric string, users must be able to type an entire number between two pipes; e.g. {{template_name | 1234.12345678 | blah-blah}}. That means a number-delimiting template simply needs to be able to extract the integer and fractional parts of the value, count the number of characters in each, send both to character-cannon, and give it instructions to spit out the string in groups of a specified size.
It seems to me that that last bit, above, is what StringFunction would be used for 80% of the time anyway. Keep it simple. I’m not a programmer; I’m a mechanical engineer who has been a project lead responsible for working with circuit designers and programmers. From my point of view, making a bullet-proof, highly focused character- cannon parser function like this would be a straightforward thing. Yes?
Greg L
On Feb 2, 2009, at 2:56 PM, Gregory Maxwell wrote:
What you really want, as far as I can tell, is string functions, not math.