www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Blog post on extending attribute inference to more functions

reply Adam D Ruppe <destructionator gmail.com> writes:
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.
Jul 13
next sibling parent reply bachmeier <no spam.net> writes:
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.
Jul 13
next sibling parent reply Adam D Ruppe <destructionator gmail.com> writes:
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.
Jul 13
parent bauss <jacobbauss gmail.com> writes:
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
Jul 13
prev sibling parent Ozan =?UTF-8?B?U8O8ZWw=?= <ozan.sueel gmail.com> writes:
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
Jul 14
prev sibling parent reply AnimusPEXUS <animuspexus protonmail.com> writes:
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")..
Jul 17
parent reply Bastiaan Veelo <Bastiaan Veelo.net> writes:
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.
Jul 18
parent reply Guillaume Piolat <first.last gmail.com> writes:
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.
Jul 19
parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
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).
Jul 19