Haskell and Swift
Hello, world. Let me share some of my findings of Haskell and Swift. I got interested in functional programming, especially in Haskell, when I realized that most of my favorite Swift features come from functional programming. My favorite features include enum with associated values, Result type, higher-order functions (i.e. passing functions themselves), KeyPath type, and so on. After started learning Haskell, I found there are more common features between Swift and Haskell than I expected. Some data types are essentially the same, some syntax is similar, and some concepts are common. In fact, Chris Lattner, who is the main author of Swift, confirms that Generics in Swift is inspired by Haskell according to an interview. ...