using compare

new topic     » topic index » view thread      » older message » newer message

[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. sad ]

Jiri wondered:

> I just want to know why you stubbornly and wastefully use
> the despised compare() function even when both arguments
> are integers?

Ouch. blink

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu