Re: we need official libs

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

Talvitie wrote:

>also swap() (or xchg if you like) would come in need. It really bugs me
>to write junk=a a=b b=junk instead of swap(a,b).

I agree that it'd be convenient, but it would contravene one of the
fundamental ways Euphoria works. When you do something like this in
Euphoria...

this = func(that, the_other_thing)

..you are 100% guaranteed that the values of "that" and "the_other_thing"
will NOT change. Only "this" will be changed, since the only way a variable
can be modified in Euphoria is to place it to the left of an assignment
operation (=, +=, -=, etc.). This is a big advantage in many respects
(avoidance of confusion, visually obvious data movement), but it can also be
a bit of a stumbling block for those of us used to parameter-modification
available in other languages (as exemplified by the "swap(a,b)" idea).

A more "euphoric" approach to the swap idea would be for something like this
to be possible:

{a,b} = {b,a}

We can't currently do this, of course, but it would be nice. smile

In the meantime, we'll just have to use the old "junk=a a=b b=junk"
approach, even though it bugs me, too.


>btw, it would be great if somebody would do a simple summary every month
>or week bout the things been discussed/announced/etc. in the list server.
>[snip]

From the mailing list page at the official Euphoria site:

]Digests
]
]You can arrange to have just one message per day
]delivered to your inbox. It will contain all the messages that
]were posted that day, in a somewhat condensed format.
]
]Send a message to
]    LISTSERV at LISTSERV.MUOHIO.EDU
]with any subject, but the body must be:
]    SET EUPHORIA DIGESTS
]
]This will reduce the number of messages arriving in your
]inbox. The disadvantage is that you won't be able to respond
]as quickly to messages that other people post. You might
]want to do this before going on vacation. To resume
]immediate message delivery, send the command:
]    SET EUPHORIA NODIGESTS

This is would accomplish basically what you're asking for here. Of course,
for a month and a half, you'd have about 45 of these digests to wade
through, but it'd be better than four or five hundred separate messages!


Hope this helps,
   Gabriel Boehme

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

Search



Quick Links

User menu

Not signed in.

Misc Menu