Redundant Declaration

A RedundantDeclaration is when the programmer is required to declare information multiple times, or explicitly state something that the compiler (or interpreter) could figure out automatically, in order to access/use a language feature. The compiler will complain if the definition(s) are missing or inconsistent.

This page doesn't refer to redundant declarations of algorithms, constants, etc. in violation of OnceAndOnlyOnce. (That said, it can be argued that the topic of this page still violates OnceAndOnlyOnce). Instead, this page refers to compiler-enforced redundancies that are added to the language to force the programmer to declare his/her intent.

Examples:


EditText of this page (last edited February 29, 2004) or FindPage with title or text search