Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ownership and Borrowing in D. Parent comment
Ironically, sometimes people complain that the purity checks are too stringent :-)
One thing interesting about pure functions in D is the purity restrictions can be relaxed by using a `debug` prefix:
pure int test(int i) { printf("%d\n", i); // error, printf isn't pure debug printf("%d\n", i); // ok return i; }
There are no comments on this comment yet.
Ironically, sometimes people complain that the purity checks are too stringent :-)
One thing interesting about pure functions in D is the purity restrictions can be relaxed by using a `debug` prefix:
This makes it very, very handy to debug your functional code.