News for hackers. Stuff that matters.
Re:Swift Has Reached 1.0 by tomp on Wednesday September 10, 2014 @05:02AM (#8295613)
Does Clojure support pattern matching? AFAIK, the only thing that is "functional" about Clojure is its immutable data structures (and closures, but even JS has those).
Re:Swift Has Reached 1.0 by pjmlp on Wednesday September 10, 2014 @05:28AM (#8295698)
Funny to call a Lisp dialect functional between quotes. When Lisp and lambda calculus are the very genesis of FP.

Yes, Lisp can do pattern matching, usually implemented via macros,

In Clojure you use the core.match library.

Re:Swift Has Reached 1.0 by tel on Wednesday September 10, 2014 @10:03AM (#8296576)
Well, 1930's functional programming. Those techniques developed into various type theories pretty quickly (at the time for foundational reasons, but also for comprehension/management/expressiveness reasons).

Or if you have a more strict reading, Lisp is implementation-driven FP in the 70s compared to theory-driven FP from the time.

Re:Swift Has Reached 1.0 by pjmlp on Wednesday September 10, 2014 @10:36AM (#8296721)
Yes, but keeps being functional programming.

Even Haskell does not have all the mathematics theory that one could apply to functional programming.

A programming language to be representative of a programming paradigm does not need to have 100% of all ideas out there.

Re:Swift Has Reached 1.0 by tel on Wednesday September 10, 2014 @10:38AM (#8296731)
I think it kind of does. FP is a moving target---more of a cultural identity than a technical definition. As it becomes more mathematically focused it will become less applicable to (some) Lisps. If this progression continues and dependently typed languages become increasingly practical we may someday call them FP-without-quotes and even displace things like Haskell and OCaml.
Re:Swift Has Reached 1.0 by pjmlp on Wednesday September 10, 2014 @11:55AM (#8297176)
Except you assume there is ONE definition of what FP is, which every researcher will have a different opinion of.
Re:Swift Has Reached 1.0 by tel on Wednesday September 10, 2014 @12:04PM (#8297232)
Hardly. I even begin my commentary noting that "FP is a moving target" and a social phenomenon more than a technical one. I personally avoid the term as possible in much the same way I avoid the term "data scientist". If you want me to do Data Science I'll get excited and ask you for statistical project details.
Re:Swift Has Reached 1.0 by emiljbs on Wednesday September 10, 2014 @12:52PM (#8297496)
I'd call Common Lisp functional between quotes.
Re:Swift Has Reached 1.0 by duaneb on Wednesday September 10, 2014 @10:23AM (#8296656)
> AFAIK, the only thing that is "functional" about Clojure is its immutable data structures (and closures, but even JS has those).

Oh, you sweet summer child. Work with a language without closures and try to do anything functional.

Re:Swift Has Reached 1.0 by tomp on Wednesday September 10, 2014 @01:24PM (#8297712)
Which language? C++? Java? Both now have closures. Closures aren't the indicator that a programming language is functional; I need something more - though I admit that I'm mostly used to static functional languages, I guess ADTs are not so useful in a dynamic language.
Re:Swift Has Reached 1.0 by dragonwriter on Wednesday September 10, 2014 @01:29PM (#8297743)
As with any programming paradigm, its not really useful to think of "functional" as a binary feature of programming languages, but rather an approach for which programming languages have varying degrees of support.
Re:Swift Has Reached 1.0 by pjmlp on Wednesday September 10, 2014 @01:42PM (#8297841)
At very least it needs to be able to have directly support for lambda calculus.
Re:Swift Has Reached 1.0 by _pmf_ on Wednesday September 10, 2014 @05:11AM (#8295648)
It has a support for destructuring, but no true pattern matching. Given the lack of algebraic data types, there's the question on what pattern matching would be supposed to match on.