A reason to choose D over Go

Jesse Phillips via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 26 11:33:15 PDT 2015


On Saturday, 21 March 2015 at 23:14:58 UTC, Ola Fosheim Grøstad 
wrote:
> This is a funny workaround:
>
> http://bouk.co/blog/idiomatic-generics-in-go/

And someone found a hole to implement it:

https://www.reddit.com/r/golang/comments/2hw356/idiomatic_generics_in_go/ckwpfms

"The interpretation of the ImportPath is implementation-dependent 
but it is typically a substring of the full file name of the 
compiled package and may be relative to a repository of installed 
packages." -- Go Spec


     import (
     "templates.Map{int, string}"
     )

Hahahaha.


More information about the Digitalmars-d mailing list