Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Functional Programming in Swift

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

Functional Programming in Swift

Avatar for IOSdevelopersMx

IOSdevelopersMx

March 10, 2016
Tweet

More Decks by IOSdevelopersMx

Other Decks in Technology

Transcript

  1. GENERALES PROPIEDADES • Misma entrada, misma salida • No efectos

    colaterales • Semánticamente no hay pase por referencia
  2. SI LAS FUNCIONES NO DEVUELVEN ALGO (SENTENCIAS), ES POR QUE

    PRODUCEN EFECTOS COLATERALES (CAMBIAN ALGO EXTERNO O ESTADO INTERNO)
  3. CARACTERÍSTICAS FUNCIONES EN SWIFT • Funciones son un tipo de

    dato (First class) • Funciones de grado superior (funciones pueden recibir y devolver otras funciones)
  4. RESUMEN DE OPCIONES Pase por Referencia Pase por Valor Mutable

    Swift Objetive-C Swift Objetive-C Inmutable Erlang Elixir Swift
  5. TÉCNICAS OBJECTIVE-C • Implicit sharing • Inheritance - Delegation •

    Reference semantics • Immutability • Value Semantics • Defensive copying
  6. SWIFT CONCLUSIONES • Swift es un lenguaje de programación híbrido

    • Riesgo de mezclar/no usar correctamente ningún paradigma • OOP nunca ha tenido nada que ver con clases, herencia y mutabilidad
  7. GENERALES CONCLUSIONES • Thread Safety • Reusability • Testability (Easier,

    Faster, No dependencies, Concurrents) • Understandability • Maintainability • Composition