digitalmars.D.announce - Blog post on extending attribute inference to more functions
- Adam D Ruppe (21/21) Jul 13 2022 A lot of people ask for more inferred attributes - safe, nogc,
- bachmeier (3/8) Jul 13 2022 It would be nice if you'd spam our subreddit. There have been
- Adam D Ruppe (5/6) Jul 13 2022 I don't like reddit. It is hard to use.
- bauss (2/5) Jul 13 2022 It's arguably harder to use these forums
- Ozan =?UTF-8?B?U8O8ZWw=?= (4/13) Jul 14 2022 I like this kind of spams ;-)
- AnimusPEXUS (6/7) Jul 17 2022 I'm holding this Your post for a few days already in my mind,
- Bastiaan Veelo (4/9) Jul 18 2022 I abuse `@deprecated` for that purpose in my own code, to remind
- Guillaume Piolat (12/15) Jul 19 2022 I put tags in comments, to text search later.
- Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= (3/8) Jul 19 2022 Yes, this form is also recognized by some editors, might even
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 2022
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 2022
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 2022
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's arguably harder to use these forumsIt would be nice if you'd spam our subreddit.I don't like reddit. It is hard to use.
Jul 13 2022
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 like this kind of spams ;-) Please more of them Regards OzanI 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 14 2022
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 2022
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 2022
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 2022
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 2022