On Tue, 23 Dec 2014 08:26:15 +0000
via Digitalmars-d <digitalmars-d@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.

Attachment: signature.asc
Description: PGP signature

Reply via email to