What's missing to make D2 feature complete?

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 22 17:42:35 PST 2014


On Mon, 22 Dec 2014 23:25:11 +0000
via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> On Monday, 22 December 2014 at 21:52:12 UTC, ketmar via 
> Digitalmars-d wrote:
> >> Thanks, I forgot that one. Immutable values by default is 
> >> indeed an important improvement. All by-value parameters to 
> >> functions should be immutable, period.
> >
> > but why? O_O
> 
> Because it is safer in long functions where you might miss a 
> modification of the input parameter when editing an existing 
> function, and copying from immutable to mutable is free if the 
> parameter is left alone after the copy.

i really really hate immutable integer args, for example, and can't
see any sense in doing it. that's why i wondered.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141223/8f1f5465/attachment.sig>


More information about the Digitalmars-d mailing list