4 ms·
Swift vs. Scala: http://leverich.github.io/swiftislikescala/ http://leverich.github.io/swiftislikescala/ Yes, Swift is pretty much missing the FP parts, but is
by frowaway001 12y ago
Swift vs. Scala: http://leverich.github.io/swiftislikescala/ http://leverich.github.io/swiftislikescala/
Yes, Swift is pretty much missing the FP parts, but isn't that an argument about familiarity, not simplicity?
- danieldk 12y agoThere will always be somebody to go wild with scalaz and/or shapeless. Scala has the same problem as C++ - you have to agree on a reasonable subset within a team and ensure that everyone sticks to it.
- frowaway001 12y agoThe good thing is: You can prevent advanced code by just not allowing the scalaz/shapeless dependency. Preventing bad code is a lot harder than that.
- danieldk 12y agoUnless some library you are using has scalaz or shapeless as a transitive dependency. Which, by now, are many.
- DCKing 12y agoMy argument was also about familiarity. The imperative subset of Scala is really familiar to Swift, you're absolutely right (+1 for posting that comparison). However, real-world Scala is different. With powerful trait-based OO programming, its functional style with routinely chaining monad after monad, and implicits everywhere. It's incredibly powerful, but not an accessible language for an app platform as large as Android's.
- frowaway001 12y agoPeople can always stick to a style they are comfortable with. It's perfectly possible to use code which uses "powerful trait-based OO programming, its functional style with routinely chaining monad after monad, and implicits everywhere" without having to know that part of the language.