Thread overview
Blog post on extending attribute inference to more functions
Jul 13
bachmeier
Jul 14
bauss
July 13
A lot of people ask for more inferred attributes - safe, nogc, etc. I have some thoughts.

Inferred Attributes

    Run-time dispatch
    Function documentation
    Compatibility contracts
    Attributes dependent on arguments
    ABI and .di file compatibility
    Compile speeds
    Conclusion

Read the details on my website here:

http://dpldocs.info/this-week-in-d/Blog.Posted_2022_07_11.html


I try to post something there once a week btw, but work+child can make that difficult to find time. So they are often a little late and many weeks I only post the auto-generated summary. But if you want to look down the index, you can find a lot of things I've talked about. I very rarely announce them here since I don't want to spam too much.

So while you might only hear from me here a couple times a year, I am probably actually writing something on the website once or twice a month.
July 13
On Wednesday, 13 July 2022 at 20:59:00 UTC, Adam D Ruppe wrote:
> I very rarely announce them here since I don't want to spam too much.
>
> So while you might only hear from me here a couple times a year, I am probably actually writing something on the website once or twice a month.

It would be nice if you'd spam our subreddit. There have been eight posts in the last month.
July 13
On Wednesday, 13 July 2022 at 21:42:20 UTC, bachmeier wrote:
> It would be nice if you'd spam our subreddit.

I don't like reddit. It is hard to use.

Of course if someone else wanted to post, you can. I might see it and comment but no promises since the UI is just really hard to keep up on and most reddit comments are low quality.
July 14
On Wednesday, 13 July 2022 at 22:48:27 UTC, Adam D Ruppe wrote:
> On Wednesday, 13 July 2022 at 21:42:20 UTC, bachmeier wrote:
>> It would be nice if you'd spam our subreddit.
>
> I don't like reddit. It is hard to use.
>

It's arguably harder to use these forums
July 14
On Wednesday, 13 July 2022 at 21:42:20 UTC, bachmeier wrote:
> On Wednesday, 13 July 2022 at 20:59:00 UTC, Adam D Ruppe wrote:
>> I very rarely announce them here since I don't want to spam too much.
>>
>> So while you might only hear from me here a couple times a year, I am probably actually writing something on the website once or twice a month.
>
> It would be nice if you'd spam our subreddit. There have been eight posts in the last month.

I like this kind of spams ;-)
Please more of them

Regards Ozan
July 17
On Wednesday, 13 July 2022 at 20:59:00 UTC, Adam D Ruppe wrote:
> 

I'm holding this Your post for a few days already in my mind, ADR. I've just coded something and come with the idea of @todo/@fixme/@issueid attributes, so compiler write messages each time it finds those. Just as a thought.. maybe It can be useful, although it's already can be done with pragma(msg, "txt")..

July 18
On Sunday, 17 July 2022 at 18:33:47 UTC, AnimusPEXUS wrote:
> I've just coded something and come with the idea of @todo/@fixme/@issueid attributes, so compiler write messages each time it finds those. Just as a thought.. maybe It can be useful, although it's already can be done with pragma(msg, "txt")..

I abuse `@deprecated` for that purpose in my own code, to remind myself of some holes that need patching.

— Bastiaan.
July 19

On Monday, 18 July 2022 at 22:48:27 UTC, Bastiaan Veelo wrote:

>

I abuse @deprecated for that purpose in my own code, to remind myself of some holes that need patching.

— Bastiaan.

I put tags in comments, to text search later.
Usually:

    // TODO:   actually blocks a release
    // PERF:   a TODO but performance related
    // MAYDO:  a TODO but too tiring
    // HACK:   a TODO for a bad workaround
    // FUTURE: a TODO but long term

A way to have them be "first-class" would be interesting. Though, technically you can with UDAs.

July 19

On Tuesday, 19 July 2022 at 09:55:52 UTC, Guillaume Piolat wrote:

>

I put tags in comments, to text search later.
Usually:

    // TODO:   actually blocks a release

Yes, this form is also recognized by some editors, might even compile a todo-list in the IDE interface for you (with no setup).