Immutability by default [was: Re: Tidy auto [Was: Re: @disable]]
Leandro Lucarella
llucax at gmail.com
Tue Jan 19 06:52:16 PST 2010
bearophile, el 18 de enero a las 17:07 me escribiste:
> Walter Bright:
> > Yes, but it would break every other line of code already written in D.<
>
> Is this a lot of D2 code? How much time does it need?
I think he includes D1 code, which would be harder to port to D2. Makes
sense to me, that's why I think introducing the := operator as an alias to
immutable/const would be a good compromise. It makes extremely easy to use
immutable/const variables while keeping backward compatibility.
--
Leandro Lucarella (AKA luca) http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
DIEZ "PUNGAS" MENOS
-- Crónica TV
More information about the Digitalmars-d
mailing list