EDOM - and Ralf the victim

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

OK, while Ralf's social skills are under question, his programming skills are
not. I think that deliberately rubbishing somebody else's efforts is very
insecure, and not what I would expect from a top guy like Jiri. Irrespective
of whether it is of any use, I would imagine Ralf has put a lot of work into
EDOM, and has done it for the good of the Euphoria community. Only those who
might find it useful would have to consider it. I have never used the library,
but then I have only ever used print() once or twice either.

And while I am here, your otherwise excellent Twins game does not save high
scores to disk, or even have a scoreboard - hope the hat tastes nice Jiri, I
recommend Jam as a topping.

[Part 2 - Types and sequence operations]

We had a case previously of wanting to multiply a sequence of coordinates by
another coordinate.

eg {{1,2},{3,4},{5,6}} * {0,-1}

Rob pointed out that he could add this feature, but if the first sequence
happened to be of length 2 then either the interpreter would revert to the
current method, or the modified one would break existing code. I suggested an
improvement which relied heavily on the use of types, something which
different programmers use to different extents.

Basically if I define a type coord then any other coords that I create are
actually just sequences, which are regularly checked for length etc. If type
checking is turned off then they just become plain old sequences (or is it
objects ?) again.

The point I am making is that types are a kind of on the top optional thing,
and if we want to have the ability to do nested sequence calculations the only
way forward I can see is to make types more concrete. This of course would
oblige programmers to use them, something I believe Rob is keen on, but would
change what the essence of a Euphoria type is. This would go nicely hand in
hand with "fixed" sequences eg

sequence of coords


What do people think ?
This would extend and complicate the language a little, but I believe that
many programmers would find it useful, and it would help out with implementing
OO without forcing it on anybody.

Nobody wants the foundations of their house to be flexible (San Francisco and
Tokyo excepted)


@@@
  \ | /
   \|/

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

Daniel

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

Search



Quick Links

User menu

Not signed in.

Misc Menu