Discuss the advantages and disadvantages of having typed and type-less programming languages.
Advantages of typed programming language:
1) The code is better optimized from the compiler.
2) It prevents run-time errors.
3) There is early detection of errors.
4) No run-time penalty is charged for determining the type.
Disadvantages of typed programming language:
1) There is a loss of flexibility
2) It is difficult to define collections of heterogeneous objects
Advantages of type-less programming language:
1) There is a lot of flexibility. Any variable can be used for any type values.
2) The speed of development is high.
3) No type errors.
Disadvantages of type-less programming language:
1) The reliability is poor because type errors can be made easily.
2) The runtime is slower.
3) The safety is less because you might return the wrong type.
Get Answers For Free
Most questions answered within 1 hours.