It turns out it's quite hard to have @safe pure nothrow functions. Oh, and const.

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 12 03:16:51 PDT 2014


Atila Neves:

> Is it similar for everyone else?

Yes, it's common.


> Is it considered a problem?

It's a moderately small problem, and it's being worked on since 
lot of time.

Originally D didn't have those attributes, so Phobos was not 
designed for them. So adding them to Phobos (and D) is a work in 
progress, and there are also some blocking problems (Like: 
http://forum.dlang.org/thread/stlslhjndgugecvmbowd@forum.dlang.org 
). In some cases some functions can't just have all attributes, 
because they need to throw, or they are not designed to be pure, 
etc.

Bye,
bearophile


More information about the Digitalmars-d mailing list