Quote:
|
Originally Posted by Stefan
Question is: should those operators (<,<=,>,>=) and functions (min,max) always use numeric values for comparison and we add a new function strcmp or similar for comparing strings,
or we keep it like it is but need to enforice numeric comparison by using int() or float().
|
Given the details, I'd prefer the first option as well. Like you said, string comparisons are rarely used, and if the client sends everything serverside as a string, people would need to use int()/float() too much if it were done the other way. It will be much simpler in the long run if the first option is used.