View Single Post
  #8  
Old 07-24-2005, 07:51 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
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.
Reply With Quote