Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Languages can be either statically or dynamically typed. In statically typed lan

ID: 3791280 • Letter: L

Question

Languages can be either statically or dynamically typed. In statically typed languages, type errors (e.g., assigning a string into a integer variable, adding a Boolean to a float) are caught at compile time; in dynamically typed languages, type errors are caught at run-time. What are some advantages and disadvantages of each approach? Classify the following languages as either statically or dynamically typed and as either strongly typed or weakly typed: Fortran, LISP, Objective C, Modula-3, Groovy, F#, Haskell, PHP, Erlang, Go. You can easily find descriptions of the languages online. Cite your sources.

Explanation / Answer

1. Advantages of statically typed languages:

Disadvantages:

Advantages of Dynamically typed languages:

Disadvantages

2. Classification

Strongly typed:

Weakly typed