[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
declaration
Some languages, however, are dynamically typed. In Python, for example, variables are never declared (there is no syntax to allow it). You simply assign a value to a name and the interpreter decides what type it is. Dynamically typed languages require a little extra care by the programmer because there is no compiler to generate warnings that you might be doing something stupid.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
declaration
Declaration
A declaration is generally a statement that instructs the compiler or interpreter how to interpret a symbol. Usually a declaration tells the compiler or interpreter of the existance of a function or variable.Some languages, however, are dynamically typed. In Python, for example, variables are never declared (there is no syntax to allow it). You simply assign a value to a name and the interpreter decides what type it is. Dynamically typed languages require a little extra care by the programmer because there is no compiler to generate warnings that you might be doing something stupid.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
