using compare
- Posted by David Cuny <dcuny at LANSET.COM> Nov 14, 1998
- 554 views
[to anyone who has tried to send me any personal e-mail recently - my e-mail got mangled, and kept looping on Jesse Kint's message... now I don't seem to be able to get stuff from the Euphoria server, and so I have to check the archives for posts. ] Jiri wondered: > I just want to know why you stubbornly and wastefully use > the despised compare() function even when both arguments > are integers? Ouch. You are certinly right about the "despised" portion - I hate doing work that's easily done by the compiler. But I've gotten burned so often by accidentally using '=' that I use 'compare' out of habit. But is 'compare' that inefficient? I would imagine that Robert could fairly easily check the args and make it as efficient as '=' if he wanted to (is this already being done?). That might be a nice feature for people like me that are "wasteful" in not optimizing their code. Thanks. -- David Cuny