API

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon May 5 19:51:21 PDT 2014


On 5/5/14, 5:54 PM, Walter Bright wrote:
> On 5/5/2014 5:10 PM, Andrei Alexandrescu wrote:
>> So I'm looking at creation functions and in particular creation
>> functions for
>> arrays.
>
> My bikeshed color comments:
>
> 1. "allok" is too kute for a name. Rather have "allocate" or "alloc".

Fortunately that's not part of the API, just of the example.

> 2. why "make" instead of "construct" or "factory"?

Shorter.


Andrei




More information about the Digitalmars-d mailing list