Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Typedef considered harmful?

Name: Anonymous 2011-08-21 14:58

http://www.45mercystreet.com/computing/typedefs.html
I've read this guy's arguments and I'm still not convinced. Typedefs are incredibly useful. Say I'm implementing a tree to store ints but later I want to reuse it to store char*s if I don't use typedef I'm going to need to change every single instance that the int is used. If I had used a typedef I could have defined each node of the tree to contain a key_t and just change the type of key_t in one line. How is this code obfuscation?

So are typedefs harmful or not in your EXPERT opinion?

Name: i_have_a_raging_boner !!kCq+A64Losi56ze 2011-08-21 21:07

>>13
BTW, I don't hire dumbasses like you for *any* kind of actual programming work at my firm. Maybe, just maybe, if I was in a good mood, and felt sorry for you, I'd give you a job that involved answering customers technical problems over the phone.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List