On Borrow Checking
Walter Bright
newshound2 at digitalmars.com
Wed Apr 30 22:54:50 UTC 2025
On 4/29/2025 5:24 PM, Luna wrote:
> My personal opinion on the matter has softened a bit over time. I do think @live
> could overall be a nice addition to the language. Much like how @nogc is an opt
> in, there are cases where opting in to borrow checking would be interesting. So
> as an opt-in attribute I’d not mind it being in the language; I’m only opposed
> to it being enforced. My strong feelings in the past was mainly down to that.
> Didn’t want to end up having it forced on me everywhere. As long as dlang keeps
> its own identity and doesn’t try to become rust, I at least think it’d be an ok
> change nowadays.
I agree that @live should be opt-in.
More information about the Digitalmars-d
mailing list