Ajude a dar forma ao GoConqr. O que a gente deve adicionar?

Mapa mental

Expression's Type

Daniel Almanza Ingeniería Espanhol

Conteúdo do mapa

Expression's Type

  1. Compilation Time

    • More Secure Code
    • Error Capture
    • Greater control of execution
  2. Inference of Types

    • No need to Specify
    • "Label" of each expression
      • Related to a Category
    • Command :t tells us the type of Expression
      • expression :: type
  3. Functions

    • Give it an explicit type in the declaration
      • Separated by ->
      • There are no differences between Parameters and the type that it returns.
        • Returns: Last element of the declaration
        • Parameters: Remaining
  4. Used Types

    • Int
    • Integer
    • Float
    • Double
    • Bool
    • Char
  5. Variable Types

    • It does not start in uppercase
    • Polymorphic functions
      • Take any type and return it
      • They are usually letters (a, b, c, d, e ...)
  6. Classes Types

    • Define behavior
    • Operators are Functions!
    • Before the => is Class restriction
    • Used Classes
      • Eq: Comparison =
      • Ord: Order
      • Show: Text Chains Samples
      • Read: Resolve Chains and return something!
      • Enum: Sequentially Ordered
      • Bounded
      • Num: Number Type
      • Integral: Whole Numbers
      • Floating: Floating comma

Informações

Descrição
Ingeniería Mapa Mental sobre Expression's Type, criado por Daniel Almanza em 18-02-2018.
Criado por
Daniel Almanza
Visualizações
0
Avaliação

Mais sobre Data Types and Typeclasses

Fale Conosco

Sobre o que é sua mensagem?

O que a gente deve adicionar?