1. Lots of language syntax

[sequence operators]
I just had to write a sum() function. Do a sum() and mult() function please,
but minus() and div() are far to ambiguous though.

[assignment on declaration]
I am for assignment on declaration, people do not have to use it if they do
not want to.

integer x=1, y=2

[Error Checking]
Error Checking is a must. When (if ?) I am beta testing a new version of EE, I
do not want to see all my data go down a screwhole when I find a new bug.

[Assigning to multiple variables]
Another thing for non-Euphorians not to be able to boast about

We need {x,y} = foo()

[More intelligent sequence arithmetic operations]
First of all, for Irv and me and others, here is an immediate solution :

I want
sequence_of_coords = sequence_of_coords * {2,-1}

Try :
sequence_of_coords = sequence_of_coords * repeat({2,-1},
length(sequence_of_coords)

Do we want you to break existing code ?
I do not consider myself so important that everyone else should have to
rewrite their code to suit my whims.

There is a distinct problem here, but I definitely think that the sequence
operations should be recursive. However, I think that the root of the problem
is that we are trying to do operations on a rectangular sequence, but because
euphoria does not know it, it is limited in its understanding of the contents.

What we need is

sequence of atoms

or

type coord()...

sequence of coords

I am sure we can have a nice long flame war on the syntax of this, but I think
that true flexibility lies in making flexibilty optional.

With a fixed length sequence, determining which to do would be a lot simpler.

What I say is that if you do

sequence of coords s={{1,2},{3,4}}
coord c={2,-1}

s = s * c

It knows that every item in the sequence is a coord, while the sequence itself
is not a valid coord ( {atom,atom} ) so it recurses once and does what we
want. To keep things simple, if you are not using "sequence of" then there is
nothing to worry about. I think that is logical enough.

"Can you live a moment longer by worrying about it ?"

Daniel

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu