5 ms·
My experience with D is always a joyful one. If it isn't because it is a relatively straightforward language to learn then it is learning something new now and
by tristanbvk 4y ago
My experience with D is always a joyful one. If it isn't because it is a relatively straightforward language to learn then it is learning something new now and then that just makes life to much more easier.
Infact, D was the first language I learnt templating in and I really like it (or rather, the way D goes about it - made it much more approachable for me).
- WalterBright 4y agoI wasn't going to add templates to D until I figured out a way to make them simple.
- Zoadian 4y agoHey walter, have you thought about adding first class types to the language? that would enable us to use CTFE for type based algorithms instead of templates like std.meta. If you did, what are the reasons against them?
- tristanbvk 4y agoYou definately made it simple! I recall the very first time I tried learning then in D (was trying to understand the `to!` from `std.conv` and it seemed simple enough). The syntax for inferring a type for function calk arguments is nifty too. Lastly, today I finally understand what mixins are , I just read some stdlib file somewhere and thought, wow that's rather useful. I definately think I will be making use of mixins sometime soon, been working on a small compiler in D itself and there are times were duplication (or perhaps inclusion is a better word) of code would be nice in such a manner.