Till KTH:s startsida Till KTH:s startsida

Type system

Erlang and Elixir are  examples of dynamically typed languages. This has some advantages when it comes to do rapid prototyping but severe disadvantages when it comes to maintaining large code projects. We will discuss these problems and some solutions that will help the situation.

So far we have only used lists and tuples bit these data structures have some drawbacks when we want to handle more complex data or very large data sets. We will in this lecture look at key-value lists, Maps and Structs and how they can help us.

Elixir concepts

Lärare Johan Montelius skapade sidan 11 januari 2016

Johan Montelius redigerade 4 februari 2016

Erlang is certainly not the best language to study the pros and cons of a type system since it is a dynamically typed language.


* types.pdf
* records.pdf

Before this lecture Before this lecture you should have read chapter 7 and 18 in the course book.