Re: unfolded expressions

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

Its seems I don't have too convice many of the advantages of these use:

   { x, y }    = location ()

However, its seems, such expressions are more of a problem:

   x + 1 = 34

First of all, one must agree when used like above, for example, it can be
more readable.
I simply suggest that any use that might be confusing should be made
illegal, why not ?

However, about multiple variables on the left-side, why not consistently
assign to the first variable mentioned or dissallow multiple variables
alltogether.

Actually, I feel sorry, that a new idea such as this, is approached upon
implementation issues rather the theory and use behind it. I never specified
on the exact rules, and it really shouldn't matter, the choice of wether or
not allowing confusing code is one totally apart from the decision and
discussion of such a language extension.

Speaking about confusing statements, its really in the hand of the
programmer.
This is legal, already:

    function pos (object x)
        return x + ( x < 0 ) * -2x)
    end function


Ralf N.
nieuwen at xs4all.nl
ralf_n at email.com
UIN: 9389920
Http://www.xs4all.nl/~nieuwen

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

Search



Quick Links

User menu

Not signed in.

Misc Menu