Usage Concerns
Some people are opposed to the extensive use of typedefs. Most arguments center on the idea that typedefs simply hide the actual data type of a variable. For example, Greg Kroah-Hartman, a Linux kernel hacker and documenter, discourages their use for anything except function prototype declarations. He argues that this practice not only unnecessarily obfuscates code, it can also cause programmers to accidentally misuse large structures thinking them to be simple types.
Others argue that the use of typedefs can make code easier to maintain. K&R states that there are two reasons for using a typedef. First, it provides a means to make a program more portable. Instead of having to change a type everywhere it appears throughout the program's source files, only a single typedef statement needs to be changed. Second, a typedef can make a complex declaration easier to understand.
Read more about this topic: Typedef
Famous quotes containing the words usage and/or concerns:
“I am using it [the word perceive] here in such a way that to say of an object that it is perceived does not entail saying that it exists in any sense at all. And this is a perfectly correct and familiar usage of the word.”
—A.J. (Alfred Jules)
“American thinking, when it concerns itself with beautiful letters as when it concerns itself with religious dogma or political theory, is extraordinarily timid and superficial ... [I]t evades the genuinely serious problems of art and life as if they were stringently taboo ... [T]he outward virtues it undoubtedly shows are always the virtues, not of profundity, not of courage, not of originality, but merely those of an emasculated and often very trashy dilettantism.”
—H.L. (Henry Lewis)