Go and generic programming on reddit, also touches on D

Timon Gehr timon.gehr at gmx.ch
Sun Sep 18 09:08:44 PDT 2011


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.


More information about the Digitalmars-d mailing list