News for hackers. Stuff that matters.
Re:Hidden treasure in the D standard library by v0i0-0 on Thursday August 28, 2014 @04:19PM (#8239479)
Have a look at the sourcecode [1]. It is just implemented with an associative array (implemented as hash table) from argument tuples to the return type. This means that keys have to be atomic or provide their to_hash and equality check themselves. Check out the D template system, it is quite impressive what you can express with it.

1: https://github.com/D-Programming-Language/phobos/blob/master...

There are no comments on this comment yet.