Re: No xor!!!

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

Jiri Babor wrote ...

>We already have some pretty useless routines, just for the sake of
>completeness (object() function springs to mind). It would make more
>sense to have a complete set of logical operators.

I agree. Although I can understand the 'just write the required
function' approach to extend Euphoria's abilities, it would be much
nicer to have in-built functions to achieve the common things in life.
These shouldn't really add too much extra to the interpreter [ should
they ? ].

I particularly dislike the ramainder() function and would love to see an
in-built 'mod' function ala

        a = 9 mod 4 -- instead of a = remainder(9,4)

Comparative operators ( >=, != etc ) should really be extended, in the
same spirit, to cover all types without having to use the compare()
function, ala

        a = "Alfred"
        b = "George"
        if ( a < b ) ....

Now I know there's going to be an argument that this will start making
Euphoria look more and more like Basic, but, it would make it much
easier for newcomers ( like me ) to get into the language much quicker.
And afterall, commercial success must be one of Euphoria's goals.

One of the reasons I was asking about a Wish-List in an earlier posting
is that Euphoria is one of the few languages where
the-person-in-the-street actually has some input on the way the language
develops.  A refreshing change.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu