News for hackers. Stuff that matters.
Re:“Mostly functional” programming does not work (2014) by mpu on Monday June 22, 2015 @09:12AM (#9758026)
But what a type! I would be much more inclined to annotate effectful code instead.
Re:“Mostly functional” programming does not work (2014) by qznc on Monday June 22, 2015 @09:50AM (#9758271)
Well, 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; }