4 ms·
But what a type! I would be much more inclined to annotate effectful code instead.
by mpu 11y ago
But what a type! I would be much more inclined to annotate effectful code instead.
- qznc 11y agoWell, it can be done simpler. The D compiler can infer those annotations for template functions such as this. So with an implementation you can write: T identity(T)(T me) { return me; }