this should not refer to the lambda

Florian Weimer fweimer at bfk.de
Mon Feb 22 01:33:22 PST 2010


* Alex Blewitt:

> I don't know any construct in Java - or for that matter, other languages - where the RHS of an assignment expression can refer to the lHS of the assignment expression, as  you proposed in http://mail.openjdk.java.net/pipermail/lambda-dev/2010-February/000833.html

C and C++ support this, as do Haskell, Objective Caml and Standard ML.
(This is about expressions in initializers, of course.)

For Ada, special syntax has been suggested to refer to the LHS from
the RHS in assignment statements, to achieve the brevity of operators
such as += without the (perceived) lack of clarity.

-- 
Florian Weimer                <fweimer at bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99


More information about the lambda-dev mailing list