hunt icon indicating copy to clipboard operation
hunt copied to clipboard

Make logging @trusted/@safe/pure (?)

Open Cogitri opened this issue 6 years ago • 3 comments

Cogitri avatar Dec 02 '19 11:12 Cogitri

These attributes are not always useful. They bring more troubles than gains before they are implemented by D compiler. The @nogc may be useful. In fact, we have implemented a simple logger which supports betterC. It is included in another project which has not be published.

Heromyth avatar Dec 05 '19 07:12 Heromyth

These attributes are not always useful. They bring more troubles than gains before they are implemented by D compiler.

Hm, but others (including me) might find them useful to isolate bugs and not being able to call the log functions in them is unfortunate

Cogitri avatar Dec 05 '19 08:12 Cogitri

It's better for the underlying APIs to be marked as @trusted/@safe/pure if they are tested well. As for the logger's APIs, we have no any reason to refuse a pull request.

Heromyth avatar Dec 05 '19 09:12 Heromyth