On Mon, 04 May 2015 03:23:07 +0000, Adam D. Ruppe wrote: > So I guess it is more a peeve of mine than anything else, but I wanted > to talk about it anyway and used the tip of the week as my vehicle. D > code that looks like C isn't a bad thing, indeed, I think it is a > selling point.
i found that i can write code "in C style" first, and then gradually converting it to be more "D-like". btw, it's a great way to start using D for begginers with C expirience: just do it as you are used to, and then change some parts as you learned new trick. it's very useful when converting C libraries to D. i have some libraries that is hard/impractical to rewrite from scratch in D, but i want 'em in D to ease hacking and improving. so i'm first converting code using D as "better C", and then adding better interfaces or rewriting some parts.
Description: PGP signature