Prototype of Ownership/Borrowing System for D

Walter Bright newshound2 at digitalmars.com
Tue Nov 26 08:31:42 UTC 2019


On 11/22/2019 12:08 AM, Johannes Pfau wrote:
> But only if you don't know for sure already that the pointer can't
> possibly be null. With non-null types (by default) such situations are
> rare.
> 
> You should really have a look at TypeScript / Kotlin some time. In
> Javascript, aborting scripts due to null-pointers in untested codepaths
> has be a main reason of bugs and TypeScript really nicely solved this. I
> think non-null types + these automated conversion from nullable to non-
> null are the most important innovations for OOP code in recent years and
> the feature i miss most when doing OOP in D.
> 

I won't say no, but it is off topic for this thread and there's too much on my 
plate in the near future to think about that (O/B, and move semantics).


More information about the Digitalmars-d mailing list