CSC/ECE 517 Fall 2009/wiki1b 2 ps: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
== Advantages of statically typed vs. dynamically typed languages==
== Advantages of statically typed vs. dynamically typed languages==
=== Typed and Untyped languages ===
=== Typed and Untyped languages ===
The “type” provides the information about the chunk of memory which holds the data and thus categorizes it such that the valid operations that can be performed on that data are defined. In object-oriented programming, the types include classes (user-defined), strings and integers (primitive types), lists/arrays/vectors/hash (containers) [2]. A variable in a program can accept a certain range of values during its execution. The upper bound value for that range marks the type for that particular variable. For example, if there is a variable num of type int in the program then num can accept only integer values during every execution of the program. Such languages where all the variables are associated with the data type are called typed languages. Certain languages do not specify separate data types for each of the variables but contains a single universal type that holds all the values. They do not define the range for the variables and are called untyped languages (assembly languages) [4].
=== Type Checking ===
=== Type Checking ===
=== Statically typed languages ===
=== Statically typed languages ===
==== Advantages and Disadvantages ====
==== Advantages and Disadvantages ====
=== Dynamically typed languages ===
=== Dynamically typed languages ===http://pg-server.csc.ncsu.edu/mediawiki/index.php?title=CSC/ECE_517_Fall_2009/wiki1b_2_ps&action=edit
==== Advantages and Disadvantages ====
==== Advantages and Disadvantages ====
=== Comparison of statically typed and dynamically typed languages ===
=== Comparison of statically typed and dynamically typed languages ===
=== References ===
=== References ===

Revision as of 02:37, 21 September 2009

Advantages of statically typed vs. dynamically typed languages

Typed and Untyped languages

The “type” provides the information about the chunk of memory which holds the data and thus categorizes it such that the valid operations that can be performed on that data are defined. In object-oriented programming, the types include classes (user-defined), strings and integers (primitive types), lists/arrays/vectors/hash (containers) [2]. A variable in a program can accept a certain range of values during its execution. The upper bound value for that range marks the type for that particular variable. For example, if there is a variable num of type int in the program then num can accept only integer values during every execution of the program. Such languages where all the variables are associated with the data type are called typed languages. Certain languages do not specify separate data types for each of the variables but contains a single universal type that holds all the values. They do not define the range for the variables and are called untyped languages (assembly languages) [4].

Type Checking

Statically typed languages

Advantages and Disadvantages

=== Dynamically typed languages ===http://pg-server.csc.ncsu.edu/mediawiki/index.php?title=CSC/ECE_517_Fall_2009/wiki1b_2_ps&action=edit

Advantages and Disadvantages

Comparison of statically typed and dynamically typed languages

References