Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats good about functional programming?

Functional good Programming
0
Posted

Whats good about functional programming?

0

Spreadsheets and SQL are both fairly specialized languages. Functional programming languages take the same ideas and move them into the realm of general-purpose programming. To get an idea of what a functional program is like, and the expressiveness of functional languages, look at the following quicksort programs. They both sort a sequence of numbers into ascending order using a standard method called “quicksort”. The first program is written in Haskell and the second in C. Whereas the C program describes the particular steps the machine must make to perform a sort — with most code dealing with the low-level details of data manipulation — the Haskell program encodes the sorting algorithm at a much higher level, with improved brevity and clarity as a result.

0

Spreadsheets and SQL are both fairly specialized languages. Functional programming languages take the same ideas and move them into the realm of general-purpose programming. To get an idea of what a functional program is like, and the expressiveness of functional languages, look at the following quicksort programs. They both sort a sequence of numbers into ascending order using a standard method called “quicksort”. The first program is written in Haskell and the second in C.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.