Functional languages vs. imperative languages - Essay Example

Only on StudentShare

Extract of sample
Functional languages vs. imperative languages

Imperative languages are greatly influenced by the von Neumann architecture due to their high dependency on an instruction counter and a store. They have control structures, like for loops and while loops, which make incremental changes to the memory while iterating over instructions. Programs written in imperative languages are statement oriented, and their principle operation is the assignment of values to variables; in other words, computation is performed with side-effects (Lee 118).
Unlike imperative languages, functional languages do not rely on the Von-Neumann architecture as they do not have any concern with variables but only data objects and values. The principle operation of functional languages is function application, and they treat functions as first-class objects that may be stored in data structures, passed as parameters, and returned as function results. Programs written in functional languages contain no variables, loop statements, and assignment statements, and use parameters and return values to communicate values; in other words, computation is performed with no side-effects (Lee 119).
Imperative languages heavily rely on side-effects to implement their state and perform their operations. On the other hand, functional languages lack side-effects which allow them to always produce the same result when given with the same parameters. This characteristic of functional languages is called ‘referential transparency’ which makes the semantics of these languages far simpler than the semantics of imperative languages (Kedar and Thakare 6-4).
In functional languages, the return value of the function can be of any data type including function type. But this is not possible in imperative languages; functions defined in imperative languages are restricted to return values of specific data types (Kedar and Thakare 6-4).
Programs written ...Show more

Summary

A program written in any of these languages contains variables which are declared and assigned with values, and changes in the…
Author : margaretteframi
Functional languages vs. imperative languages essay example
Read Text Preview
Save Your Time for More Important Things
Let us write or edit the essay on your topic
"Functional languages vs. imperative languages"
with a personal 20% discount.
Grab the best paper

Related Essays

All languages are sexist
The purpose of this research is to investigate the following: language development; social constructionism; integration of language and human experience; methods employed in language studies and language and its context. The research substantially point out that language can be understood in relation to its environment
10 pages (2500 words) Essay
Multi-Paradigm Programming Languages
The various programming languages available for computer programming are classified according to the paradigm in which they operate. Each programming paradigm is different in style, concept and methodology from others. Different paradigms are suitable for different purposes egg – object oriented paradigm considers any program written as a collection of various objects that interact with each other, database programming paradigm is ideal if the program is intended to handle large amount of data and logic and constraint based programming is the most suited for search problems.
3 pages (750 words) Essay
Programming Languages
As the computer science is an evolving and dynamic discipline, therefore, it is difficult to categorize the already developed computer languages. Some of the authors have classified the computer languages into three (3) categories include: machine level language, assembly level language and high level language (Venit and Drake, 2010).
7 pages (1750 words) Essay
Exploring Programming Languages
Java is an object-oriented programming language created in 1995 by Sun Microsystems for the development of software applications and interactive programs or applets which are commonly used in the internet for animation purposes. In today's evolution in mobile industry, Java contributes more advancement in the making of mobile applications and software.
3 pages (750 words) Essay
Web Languages
As the technology was pacing up there was a necessity for all the information present online to appear consistent and easily understandable. Internet was a powerful weapon to provide the required information to a user that was relevant and easy to access within a split second.
6 pages (1500 words) Essay
High-level languages and low-level languages
In addition, these instructions are provided to the computer in accordance with the rules of that particular programming language (Norton, 2001; Shelly et al., 2005). This paper presents an overview of the programming language. This paper will also discuss the types
4 pages (1000 words) Essay
French studies / understanding languages
The importance of Fanon`s thoughts is an observable matter for all people because most of his books are translated in English language. With this facility, people can read his
6 pages (1500 words) Essay
Endangered languages
ies conducted by the World Report and the US News, many of the approximately 6,000 languages currently in the world are in danger of becoming extinct if they are not reinforced and revived at least through the culture of oral tradition (Anchimbe 56). This essay will explore the
3 pages (750 words) Essay
Endangered languages and cultures
Language encryption can occur in diverse forms, such as secondary media via use of visual audio through whistling and graphic writing. It does possess immense varieties of expressions, displacement, and productivity properties. Despite this, language
6 pages (1500 words) Essay
Languages
The spoken language is a uniquely human characteristic because other animals cannot use language “because they lack the human brain structures that create language. Our level of intelligence also allows us to use vocabularies or
3 pages (750 words) Essay
Get a custom paper written
by a pro under your requirements!
Win a special DISCOUNT!
Put in your e-mail and click the button with your lucky finger
Your email
YOUR PRIZE:
Apply my DISCOUNT