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: Anonymous 2011-08-21 21:05

>>13
I'm not the retard that made the following statement:

Polymorphic functions come from functional programming (e.g. Haskell) which is like parameter overloading.


Cripes, I don't think even your second your computer science student at a school like CSU Hawyard would make such an idiotic statement. Presumably, unlike you, they know and appreciate the difference between the two.

You've once again demonstrated that you don't have the mental capacity to do computer programmer. Now go help another customer you mental midget. Or if tonight is your night off, do something that is a tad bit easier. Like watching TV.

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