Xinok Sort - December 2011

Alex Rønne Petersen xtzgzorex at gmail.com
Thu Dec 1 05:42:15 PST 2011


On 01-12-2011 14:26, Steven Schveighoffer wrote:
> On Wed, 30 Nov 2011 20:45:19 -0500, Andrej Mitrovic
> <andrej.mitrovich at gmail.com> wrote:
>
>> Add @property to front/back/popFront/popBack/empty/save.
>>
>> Also popFront/popBack need to be void return type.
>
> popFront/popBack need not be @property.
>
> -Steve

Anything that mutates the state of an object or does something that's 
significantly more expensive than retrieving a field should not be a 
property. This is something I still have gripes with in the language 
itself (see array.dup). I think it's completely broken that such design 
is encouraged.

- Alex


More information about the Digitalmars-d-announce mailing list