It seems to be pretty common and accepted practice to use the static init field to get default values of an arbitrary templated type--however this pattern will fail hard on types like BitArray that have methods name init(), and no overloads that can be called without parameters. It'd make life a lot easier if these methods could be renamed to something like initialize().
IMO, proper ctors should be used instead of init(), since that is essentially what they do.
https://github.com/D-Programming-Language/phobos/pull/2855
Actual pull (you posted wrong link) https://github.com/D-Programming-Language/phobos/pull/2854 :-)
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/588c76c19b2619361f37084ec4bcaa95f7f03417 Merge pull request #2854 from quickfur/bitarray_init Issue 13806: BitArray should not define member function called init()
Are there any other instances of init abuse in Phobos, or can we close this now?
Commit pushed to 2.067 at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/588c76c19b2619361f37084ec4bcaa95f7f03417 Merge pull request #2854 from quickfur/bitarray_init
This seems to have been solved. If there are other cases of init abuse, one can always file a new bug report. Closing as fixed.