[dmd-beta] Fighting with 2.059 and not quite winning

Walter Bright walter at digitalmars.com
Fri Apr 6 23:09:01 PDT 2012



On 4/6/2012 9:04 PM, Jonathan M Davis wrote:
> My _guess_ as to why toHash now requires purity is because the current AA 
> implementation relies on it as part of the transition to proper constness and 
> purity in Object and whatnot (the implementation isn't currently templated, so 
> it can't take advantage of purity inference). 

The reason for purity is so that it can be used in functional programming 
paradigms. FP is becoming increasingly important, and we need to make the 
foundational bits of Phobos as pure as possible.


More information about the dmd-beta mailing list