My advice on implementing stuff in C:
Posted Oct 17, 2010 19:50 UTC (Sun) by jzbiciak
(✭ supporter ✭
In reply to: My advice on implementing stuff in C:
Parent article: Russell: On C Library Implementation
I hear you on the missing named initializers. I had forgotten about that. I guess, other than using restrict generously, I haven't started using too many C99-specific features.
I didn't know about the compound literals.... nifty!
I don't use a lot of casting, personally, but where I do, I like the ability to specify what exactly I'm trying to accomplish. Where I use casting most is in embedded programming, where I need to cast between a pointer type and an unsigned int. That comes up a lot when talking to peripherals. reinterpret_cast makes it so much clearer what I'm trying to do, IMHO.
to post comments)