CSC/ECE 517 Fall 2011/ch1 1d ss: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:


=== statically vs dynamically typed ===
=== statically vs dynamically typed ===
 
One simple way to differentiate between the two is:<br>In statically typed languages,type checking is done at the compile time where as in dynamically typed languages, type checking is done at run-time.
Examples of statically typed : C,C++,Java,JADA,Pascal etc<br>
Examples of dynamically typed : PHP,Prolog,Python,Ruby,Small talk etc.[http://en.wikipedia.org/wiki/Type_system#Static_typing]


== Closures ==
== Closures ==

Revision as of 02:49, 8 September 2011

Closures in statically typed languages. Most languages that implement closures are dynamically typed. It is a challenge to implement closures in a statically typed language. Explain why, and cover attempts to mix the two. Consider also closures and static scoping, as in Scheme.

Introduction

statically vs dynamically typed

One simple way to differentiate between the two is:
In statically typed languages,type checking is done at the compile time where as in dynamically typed languages, type checking is done at run-time.

Examples of statically typed : C,C++,Java,JADA,Pascal etc
Examples of dynamically typed : PHP,Prolog,Python,Ruby,Small talk etc.[1]

Closures

what exactly is Closure

Advantages of Closures

Implementation of Closures

In dynamically typed languages

statically typed languages, difficulty

In statically typed languages

Closures and Static Scoping

References