Go and generic programming on reddit, also touches on D

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Sep 18 13:06:14 PDT 2011


On 9/18/11 2:34 PM, Timon Gehr wrote:
> On 09/18/2011 08:28 PM, Andrei Alexandrescu wrote:
>> On 9/18/11 11:08 AM, Timon Gehr wrote:
>>> On 09/18/2011 03:48 AM, Andrei Alexandrescu wrote:
>>>> Quite interesting.
>>>>
>>>> http://www.reddit.com/r/programming/comments/kikut/think_in_go_gos_alternative_to_the/
>>>>
>>> 2 hours ago, Andrei Alexandrescu wrote:
>>> > The problem is, Vector was just an example of a multitude of
>>> containers. The huge problem with slices is dogfood-related - they are >
>>> "magic" because the language features proposed to programmers were not
>>> enough for expressing a simple abstraction. Reserving "special" features
>>> for the language is a terrible way to go about programming language
>>> design.
>>>
>>> Don't D arrays do a similar thing? They are not templates, yet work with
>>> generic element types.
>>>
>>> Afaics, improving the language to the point were dynamic array-like
>>> structures could be implemented in the library without resulting in a
>>> bloated executable would be quite involved.
>>
>> That's an incorrect view of my statement.
>
> I don't think so.

You're free to think anything, but I know what I said and your view of 
it is incorrect.

Andrei


More information about the Digitalmars-d mailing list