2 ms·
I read the overview, cool language, very cool to see it open sourced, and just looking at the code it is clear how much it inspired Haskell. I started hacking
by mark_l_watson 7y ago
I read the overview, cool language, very cool to see it open sourced, and just looking at the code it is clear how much it inspired Haskell.
I started hacking (a lot!) this week on an experimental project in Swift. Swift is similar to Haskell and Miranda in supporting functional programming. I like Haskell’s syntax and in general REPL based Haskell development, so at first Swift’s syntax bugged me. However, when I set my project up with Playgrounds for developing bits of low level functionality in what is effectively a REPL environment, and spent a day with XCode, I now think Swift is a worthy substitute for Haskell for some projects (i.e., when targeting macOS and/or iOS).
- LessDmesg 7y agoSwift is not similar to Haskell and Miranda. It's an imperative refcounted manually managed language with strict evaluation, while Haskell and Miranda are GCed languages with lazy evaluation and immutability. It's hard to find languages more different, really.
- mark_l_watson 7y agoYou are right of course about the non-lazy part and like Scala, it is easy enough to use mutable data, although not good style.