Effectively final effective?

John Nilsson john at milsson.nu
Wed Feb 24 13:52:50 PST 2010


On Wed, Feb 24, 2010 at 10:24 PM, Alex Blewitt <alex.blewitt at gmail.com>wrote:

> The Lambda 0.1.5 spec introduces 'effectively final', as a way of getting
> final-like variables but without having to type the letters f i n a l into
> the code.
>

Isn't it also about being able to mutate the variable outside the closure?
IOW it's effectively final inside the closure, but the variable is free to
be rebound outside it.
So it's actually about not having to type

final T myFinalT = mutableT;

?

BR,
John


More information about the lambda-dev mailing list