On Thursday, 19 December 2019 at 11:48:21 UTC, Andre Pany wrote:
I wonder whether D could be enhanced in future to make the CRTP
idiom a little bit nicer:

It is also possible to do a mixin for most the same result.

But yeah if the language were to change there's some fun things. The two I have considered is something similar to what you wrote and also putting an automatic child mixin in the parent class/interface.

Just I work with what we have, not what might happen at some point in the future :)

Reply via email to