Re: Reading a file into a "sequence"

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

Christian Cuvier wrote:
> 
> > I know, it is pretty stupid, and everyone trips over this at least once,
> > but that's what RDS believes is a good thing to do. 
> > 
> 
> And something very intuitive as well. s1 + s2 adds elements together, s1 = s2 
> compares them together.
> I have a lot of complaints about Eu lack of obviously needed features, but 
> this one is one of the only bright spots.
> 
> CChris
> 
> > Anyhow, to fix your problem do either this  ...
> > 
> >   if length(Fields) = 0 then exit end if (*don't forget the 'end if')
> > 
> > or
> > 
> >   if equal(Fields, {}) then exit end if (*don't forget the 'end if')
> > 
> > -- Derek Parnell Melbourne, Australia

Okay, but from both a consistency point of view and from a syntactic sugar point
of view, s1 = s2 should either:

Be equivalent to equal(s1, s2) when found in a conditional (if, when)
Have the result sequence (1, 0, 1, 1) be reduced to an atom that is TRUE if and
only if all of its elements are true, again only in a conditional statement (if,
when).

Personally I prefer the second example.




j.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu