1. Re: we need official libs : Swap

Roderick Jackson wrote:

> Mmm, I don't know about this. Were you already familiar
> with some other language that incorporates this idea,
> before you discovered Euphoria?

Look at Python.


> "If it's not broke, (or at least causing trouble,)
> why 'fix' it?"

1. I have to create an intermediary variable who's *only* function is to act
as an intermediary:

        sequence pt
        pt = get_position()
        x = pt[1]
        y = pt[2]

2. I have to use indexes, which are less clear than direct assignment. In
order to get around this, I have to set up constants to make the code more
readable. The *only* reason they exist is because the intermediary variables
exist:

        constant X = 1, Y = 2
        ...
        x = pt[X]
        y = pt[Y]

3. I have to use indexed sequences, which are slower than numerically typed
variables.

-- David Cuny

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu