What's missing to make D2 feature complete?

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 23 00:42:54 PST 2014


On Tue, 23 Dec 2014 08:26:15 +0000
via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> On Tuesday, 23 December 2014 at 01:42:49 UTC, ketmar via 
> Digitalmars-d wrote:
> > i really really hate immutable integer args, for example, and 
> > can't
> > see any sense in doing it. that's why i wondered.
> 
> It might be a bit annoying for short functions, but in principle 
> the function signature should be written for the user (document 
> an encapsulated interface) and exposing irrelevant aspects of the 
> implementation in the interface is "bad taste".
that's why we have `in` keyword, which clearly indicates that argument
is "in only". making `in` default is breaking of my lovely principle of
least astonishment.
-------------- 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/d7caa195/attachment.sig>


More information about the Digitalmars-d mailing list