Hacker News new | ask | show | jobs
by jonathanstrange 3498 days ago
Yo, would be nice to have some functional programming language with decent syntax to program apple machines. Let's call it Dylan to honor the most recent winner of the Nobel prize for literature.

Just kidding. The bottomline of this page and talk is that Swift is still not functional. But you can do cool things with it.

2 comments

https://en.wikipedia.org/wiki/Dylan_(programming_language)

(for those who didn't get the joke... ;-)

I dunno; I think the bottom line of this page is that functional programming is a set of approaches for solving problems, and some of those approaches can be done in Swift.
Haven't read the article yet, but the problem I find with this attitude generally is that the constraints found in FP are what I find valuable, and what are usually missing from languages which support functional approaches.
Well said. I can write exceedingly low defect code without folds. I can't do so with implicit IO everywhere, ad hoc polymorphism, and dynamic typing.
My take was that you can solve problems by breaking things down. In functional programming you do so with functions. In Swift you can do so with types.