Worst ideas/features in programming languages?

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Nov 10 19:26:10 UTC 2021


On Wed, Nov 10, 2021 at 05:55:47PM +0000, Stefan Koch via Digitalmars-d wrote:
> On Wednesday, 10 November 2021 at 17:05:20 UTC, H. S. Teoh wrote:
> > On Wed, Nov 10, 2021 at 02:17:28PM +0000, Sebastiaan Koppe via
> > Digitalmars-d wrote:
> > > On Wednesday, 10 November 2021 at 14:15:58 UTC, Stefan Koch wrote:
> > > > On Wednesday, 10 November 2021 at 07:09:34 UTC, Timon Gehr >
> > > wrote:
> > > > > Specifically, I would like it to influence scoping.
> > > > > > > ```d
> > > > > int x=2;
> > > > > int y=move(x);
> > > > > int z=x; // error: undefined identifier x (was moved away)
> > > > > > > int y=move(y); // ok
> > > > > ```
> > > > > That would be a good start. I would support that.
> > > 
> > > Yeah, that would be lovely.
> > 
> > That would allow a better implementation of ownership tracking.
[...]
> Other way around.
> It requires better compiler ownership tracking.

That's what I meant. :D  If the compiler has this tracking, then it
becomes possible to implement a simple ownership-tracking pointer
wrapper type in user code.


T

-- 
Stop staring at me like that! It's offens... no, you'll hurt your eyes!


More information about the Digitalmars-d mailing list