RE: Small feature request for future EU versions

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

Chris Bensler wrote:
> 

[snip]

> 
> For comparing sequences that are not the same length, euphoria should 
> still fail.
> 
> If you wanted to know if every element is true, you could use
> compare() or equal().

I guess this is where you and I differ.

It seems that you would like equality (and relationship comparisions) 
implemented as built-in functions (eg. equal(), compare() ) and 
sequence operations performed by operators ('=', '<', etc...)

Whereas I'd prefer the reverse situation. I'd like relationship
comparisions to use operators and sequence operations to use built-in
functions.

I'd prefer that ...

   cond1 = (seq1 = seq2) 

to be interpreted as ...

   if the contents of seq1 and the contents of seq2 are identical then
   assign 'true' to cond1 otherwise assign 'false' to cond1.

If I really wanted a sequence operation to be performed as its result 
to be assigned I'd rather write something like ...

   cond1 = seqop_eq(seq1, seq2)

-- 
Derek Parnell
Melbourne, Australia

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

Search



Quick Links

User menu

Not signed in.

Misc Menu