Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).



I wasn't going to add templates to D until I figured out a way to make them simple.


You 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.


Hey 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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: