Re: D affects others

2014-05-29 Thread Andrei Alexandrescu via Digitalmars-d
On 5/28/14, 10:05 AM, Russel Winder via Digitalmars-d wrote: On Wed, 2014-05-28 at 16:31 +, Wanderer via Digitalmars-d wrote: D's const feature is nice and clear. But what made me fall in love with D, is 'immutable' modifier. No inner mutable pieces possible, no need to copy defensively (or

D affects others

2014-05-28 Thread Russel Winder via Digitalmars-d
Mike Hearn has started a thread on the Kotlin (*) mailing list extolling the virtues of D's transitive const. Andrey Breslav (the leader of the Kotlin team at JetBrains) has made a couple of replies that I think may be interesting here: As C++ and D show, const is not that easy. We'd like to

Re: D affects others

2014-05-28 Thread Wanderer via Digitalmars-d
It's very hard to keep up-to-date with all these successors to Java. Every half a year a new language appears, and it's always better than all previous. :-( D's const feature is nice and clear. But what made me fall in love with D, is 'immutable' modifier. No inner mutable pieces possible,

Re: D affects others

2014-05-28 Thread Russel Winder via Digitalmars-d
On Wed, 2014-05-28 at 16:31 +, Wanderer via Digitalmars-d wrote: It's very hard to keep up-to-date with all these successors to Java. Every half a year a new language appears, and it's always better than all previous. :-( I am not sure which languages you are thinking of here, there

Re: D affects others

2014-05-28 Thread Walter Bright via Digitalmars-d
On 5/28/2014 1:49 AM, Russel Winder via Digitalmars-d wrote: Also, D's approach does not support lazy evaluation, caches of all sorts etc, that we think are crucial in application software. Yes, that's so-called logical const. This has come up several times here, and many have argued strongly

Re: D affects others

2014-05-28 Thread deadalnix via Digitalmars-d
On Wednesday, 28 May 2014 at 18:08:42 UTC, Walter Bright wrote: On 5/28/2014 1:49 AM, Russel Winder via Digitalmars-d wrote: Also, D's approach does not support lazy evaluation, caches of all sorts etc, that we think are crucial in application software. Yes, that's so-called logical const.

Re: D affects others

2014-05-28 Thread Dicebot via Digitalmars-d
On Wednesday, 28 May 2014 at 20:49:31 UTC, deadalnix wrote: It is probably a good idea to provide such escape in a safe interface somewhere in the library, no ? I am not sure it is possible to design such module so that it will be both sufficiently generic and reliably type safe. Can be an

Re: D affects others

2014-05-28 Thread Walter Bright via Digitalmars-d
On 5/28/2014 1:49 PM, deadalnix wrote: It is probably a good idea to provide such escape in a safe interface somewhere in the library, no ? If anyone wants to design such a module, please do so.

Re: D affects others

2014-05-28 Thread w0rp via Digitalmars-d
On Wednesday, 28 May 2014 at 18:08:42 UTC, Walter Bright wrote: On 5/28/2014 1:49 AM, Russel Winder via Digitalmars-d wrote: Also, D's approach does not support lazy evaluation, caches of all sorts etc, that we think are crucial in application software. Yes, that's so-called logical const.

Re: D affects others

2014-05-28 Thread deadalnix via Digitalmars-d
On Wednesday, 28 May 2014 at 21:22:36 UTC, Walter Bright wrote: On 5/28/2014 1:49 PM, deadalnix wrote: It is probably a good idea to provide such escape in a safe interface somewhere in the library, no ? If anyone wants to design such a module, please do so. i have to say i'm not sure what