Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Functional languages like F# and Scala are becoming popular. Do these types of functional languages make it easier to write higher quality software that requires less testing. In other words, is it easier to write "correct" software that has fewer bugs?

share|improve this question

closed as primarily opinion-based by dzieciou, user246, bish, Helping Hands, JustARandomGuy Jan 4 at 4:57

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

This is probably a better question for – Ethel Evans Jun 11 '11 at 18:56
Perhaps. Probably crosses domains. Can someone move it? How about a SE feature where a question can live in > 1 world? – user207 Jun 11 '11 at 19:31
After all, picking the forum is really just adding a tag. – user207 Jun 11 '11 at 19:37

Functional languages may make it harder to create some kinds of bugs (e.g. bugs due to misunderstandings about side effects). Of course language acquisition has a learning curve, and there may be more bugs rather than fewer while a developer reaches a certain skill level.
Moreover, bugs arise for all kinds of reasons, some of which have nothing to do with the programming language.

share|improve this answer
1. Let's assume that one has become a competent programmer in the functional language. 2. Are we assuming that those "other reasons" are equal across all languages so we can just ignore them? Given these assumptions, are functional programs easier to write with few bugs? – user207 Jun 11 '11 at 15:53
Not necessarily. For example, You need to consider the language environment. If you use a functional language, will there be as rich an ecosystem of supporting libraries available is there are for more established, procedural languages? If not, you may need to write more code yourself. The more code you write, the more bugs you will produce. And yes, existing libraries may have bugs too, but if others are using and maintaining them, there are probably fewer bugs than in your brand-new code. – user246 Jun 11 '11 at 17:41
This is really a topic for a language forum, not a QA forum. Yes, your question is about quality, but no, there are not a lot of functional programming experts/advocates hanging around here. – user246 Jun 11 '11 at 17:43

Correctness is subjective. Whether or not software is 'correct' depends on your idea of correctness.

WRT F# and Scala, they are just programming languages. There are benefits and limitiations for the various programming languages. When used by competent developers various programming languages can be employed very effectively in the appropriate context to help develop software solutions.

In a nutshell, it's not the programming language as much as it is the competency of the developer using the language and the context in which it is being used.

share|improve this answer