Why is D unpopular, redux.

Paul Backus snarwin at gmail.com
Sun May 22 18:46:07 UTC 2022


On Sunday, 22 May 2022 at 13:46:29 UTC, FeepingCreature wrote:
> On Friday, 20 May 2022 at 12:59:04 UTC, rikki cattermole wrote:
>> Why can't I support const? To iterate, you need to be able to 
>> mutate state. This includes an iterator (for concurrent 
>> iteration + mutation support). And of course reference 
>> counting.
>>
>
> I just want to note that librebindable was created to solve 
> this exact problem. I'm gonna do a dconf talk on that, too. 
> (Yay!)
>
> https://code.dlang.org/packages/rebindable We've mostly done 
> development on the code in an inhouse repo, so this is a bit 
> outdated, but nothing in the internals has changed, as far as I 
> can remember. I'm going to do an update of the public repo 
> before DConf, add some utility types as examples and so on. But 
> the core idea has been surprisingly stable.

I wonder if it would be easier to use 
[`__traits(getPointerBitmap)`][1] instead of recursion on 
`T.tupleof` to determine the layout of `Rebindable!T`?

[1]: https://dlang.org/spec/traits.html#getPointerBitmap


More information about the Digitalmars-d mailing list