Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any algorithm needs functional language exclusively to be implemented

I'm a C# developer and I don't have enough information about functional languages,

My question that is there any algorithm needs functional language exclusively to be implemented?

Regards.

like image 528
Homam Avatar asked Oct 16 '10 18:10

Homam


People also ask

When should a functional programming language be used?

If your application is supposed to be stateless, then functional programming is the way to go. But if your solution is stateful and requires state management, applying a functional approach will look unnatural. In the end, it is another great tool for solving specific problems.

Can you do functional programming in any language?

A short answer is yes, you can do functional programming in any language. The long answer is you probably don't want to. One reason is that relying on discipline might work if you're writing a small program or you're writing a program by yourself or on a very small team, you can handle the discipline of it.

Does anyone use functional programming?

Functional programming has historically been less popular than imperative programming, but many functional languages are seeing use today in industry and education, including Common Lisp, Scheme, Clojure, Wolfram Language, Racket, Erlang, Elixir, OCaml, Haskell, and F#.


1 Answers

As long as a language is Turing complete, any algorithm can be implemented in it (by definition of "algorithm"). But as others have said, functional languages can do certain things more elegantly. (Just take a look at Haskell. What a lovely language.) I'd also argue that there is a class of problems that OOP languages do better. (In my opinion, GUIs, although some may disagree.)

like image 84
Gregory Higley Avatar answered Oct 03 '22 00:10

Gregory Higley