Re: Sequence comparison

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

No Solution writes:
> Yes i am aware of this option, but that is still using functions,
> i am just wondering if Rob ever wanted to implement an
> operator for sequence comparison.
> like this:

>  sequence s1,s2
>  s1 = "ian"
>  s2 = "ian"

>  if s1 $= s2 then ...

I don't think there is much difference in readability between:
         s1 $= s2
and
         equal(s1, s2)
and functions, such as equal(), that are built in to
the interpreter carry no extra overhead when compared
with operators, so speed is not an issue.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu