Editions Ideas

jmh530 john.michael.hall at gmail.com
Fri Jan 16 17:23:03 UTC 2026


On Friday, 16 January 2026 at 15:20:22 UTC, Atila Neves wrote:
> On Monday, 5 January 2026 at 13:40:13 UTC, jmh530 wrote:
>> On Monday, 5 January 2026 at 10:20:50 UTC, Atila Neves wrote:
>>> [snip]
>>>> @live is an underrated feature, I'm a fan and it's something 
>>>> that I occasionally use for its simplicity. Sometimes I toss 
>>>> @live, @safe, etc. on functions to see that state of my code 
>>>> to see if the compiler can help me refactor library code.
>>>
>>> I don't think anyone should be using features like `@live` 
>>> themselves and instead the language should provide the 
>>> features that allow one to write library solutions like smart 
>>> pointers.
>>
>> Anyone? Someone has the write the library solutions...
>
> https://github.com/atilaneves/automem

I was poking fun. When you say "anyone", obviously "someone" has 
to write them.

Your point is that library writers should write smart pointers 
that use @live, but users shouldn't need to worry about it. I 
don't have a sense if that is actually something that would work 
out.

Regardless, automem doesn't use @live to my knowledge...so you're 
free to incorporate @live there and let us know how it works 
out...


More information about the Digitalmars-d mailing list