Max Haughton

Results 146 comments of Max Haughton

@RazvanN7 as mentioned above you can implement a terrible approximation to this as a library, yes, but it doesn't actually generalize `with` to expressions so the comparison is pointless.

@ljmf00 removing the union requires making my visitor much more complicated as I now have to walk everything myself versus just hooking where the identifiers appear

> > @ljmf00 removing the union requires making my visitor much more complicated as I now have to walk everything myself versus just hooking where the identifiers appear > >...

> > > Does it really though? Outside of unary and binary nodes, what else is there to have a visitor for? > > > > > > Just because...

> Adds two new functions for the power operator: > > ``` > typeof(X * Y) pow(X, Y) > if (IntOrFloat!X && Int!Y); > > typeof(X * Y) pow(X, Y)...

CI should fail on vtemplates test but my druntime is broken so relying on this to see exact what happens

Yes, it is useful. It costs nothing, and anyone actually using D in production will at some care about template bloat. -vtemplates as it stands isn't actually very useful for...

Should taking the address be banned too? Direct function calls aren't the only way to corrupt using a constructor like this.

The error message should probably be more clear that the syntax never did anything.

> (Note: smart optimizers will generate a jump table for the if condition, but apparently ldc and dmd aren't one of them). gcc does not generate a jump table here,...