Should I brush up on my C before plunging fully into D?

Nicholas Wilson via Digitalmars-d-learn digitalmars-d-learn at
Fri Oct 14 20:04:14 PDT 2016

On Saturday, 15 October 2016 at 01:46:52 UTC, Chris Nelson wrote:
> I'm mainly a scripting language, .NET, and SQL programmer. I've 
> been looking for a good programming language for Linux/BSD 
> other than Python. I've surveyed the options and D appears to 
> be a sane modern choice for me. (Thanks Ali Çehreli and others!)
> The only hitch is that many of the projects and libraries I'm 
> interested in using or maybe porting are mainly C based. (My 
> overall C-fu is weak...) Should I review a good C book or 
> tutorial before jumping in to fully learning D? Or should I 
> just eschew any C exposure until I master D?
> (As a side note, many of the C libraries I'm interested in seem 
> to be confusing messes of header files and "organic" code. But 
> who am I to judge?)

It is possible to write in a C style in D and they are similar 
enough (when writing like C) that learning D should cover you for 
most of the C (sans macros), but obviously D can do a whole lot 
D has the philosophy that it should work the same way as C or not 
compile at all.

As always Ali's book is excellent (and free!), so start with that.

There are many bindings for C libraries available for D, see or try dstep as mentioned above.

More information about the Digitalmars-d-learn mailing list