Ayúdanos a dar forma a GoConqr. ¿Qué deberíamos añadir?

Mapa mental

Expression's Type

Daniel Almanza Ingeniería Español

Contenido del 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

Información

Descripción
Ingeniería Mapa Mental sobre Expression's Type, creado por Daniel Almanza el 18/02/2018.
Creado por
Daniel Almanza
Visitas
0
Valoración

Más sobre Data Types and Typeclasses

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué deberíamos añadir?