Pro Yearly is on sale from $80 to $50! »

Dutch FP Day 2015

Dutch FP Day 2015

Ade0c334ecff1448bb96f5f733bf1f83?s=128

Chris Eidhof | @chriseidhof

January 09, 2015
Tweet

Transcript

  1. Functional Programming in Swift @chriseidhof

  2. First, a story...

  3. None
  4. None
  5. None
  6. Real World Wide Web Haskell Chris Eidhof Eelco Lempsink FP

    Dag, January 9th, 2009 UVQJM
  7. None
  8. None
  9. - (NSDictionary*)parseResponse:(NSData*) data { NSString *dataString = [[NSString alloc] initWithData:data

    encoding:NSUTF8StringEncoding]; NSObject *json = [dataString JSONValue]; [dataString release]; if (json == nil || ![json isKindOfClass:[NSDictionary self]]) { return nil; } return (NSDictionary *)json; }
  10. + (BOOL)isHostReachable:(NSString *)host { if (!host || ![host length]) {

    return NO; } SCNetworkReachabilityFlags flags; SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithName(NULL, [host UTF8String]); BOOL gotFlags = SCNetworkReachabilityGetFlags(reachability, &flags); CFRelease(reachability); if (!gotFlags) { return NO;
  11. OOP

  12. Writing my own language

  13. None
  14. None
  15. This changes everything...

  16. Much convincing to do...

  17. Awesome responses...

  18. Very interesting times

  19. None
  20. Everybody in our community is at least looking at Haskell.

    Many are learning.
  21. How we wrote the book

  22. » Literate Swift » Playgrounds (= awesome!)

  23. None
  24. Demo

  25. Challenges

  26. We know it's awesome, but saying so directly will turn

    people away
  27. Swift still lacks a lot: stability, tooling, constraints at the

    type-level, compiler bugs
  28. What terminology do we use?

  29. “We don't need all this new stuff, generics are awful”

  30. Thanks

  31. Credits Utrecht photo: https://www.flickr.com/photos/ lambertwm/