Nobody downloaded yet

Functional languages vs. imperative languages - Essay Example

Comments (0) Cite this document
A program written in any of these languages contains variables which are declared and assigned with values, and changes in the…
Download full paperFile format: .doc, available for editing
GRAB THE BEST PAPER93.3% of users find it useful
Functional languages vs. imperative languages
Read TextPreview

Extract of sample "Functional languages vs. imperative languages"

Download file to see previous pages 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 ...Download file to see next pagesRead More
Cite this document
  • APA
  • MLA
(“Functional languages vs. imperative languages Essay”, n.d.)
Retrieved de
(Functional Languages Vs. Imperative Languages Essay)
“Functional Languages Vs. Imperative Languages Essay”, n.d.
  • Cited: 0 times
Comments (0)
Click to create a comment or rate a document

CHECK THESE SAMPLES OF Functional languages vs. imperative languages

All languages are sexist

...experience, gender therefore is highly associated with language. Thus, this specifically implies that all languages are sexist especially on how they are applied in context. In various cultures, different languages have potential to identify various meanings. There is always a clear evidence supporting the fact that potential discrimination between a man and a woman continuously exist in society where the basic tool in order to express self is language. References Feldman, R. S. (2003). Essentials of Understanding Psychology (5th ed.). New York: NY: McGraw-Hill. Ghadessy, M. (1999). Text and context in functional linguistics. Philadelphia, PA: John...
10 Pages(2500 words)Essay

Comparison of Scripting Languages

.... However, Octave image processing purposes are not as broad as those provided by Matlab. Python, Matlab, and Octave scripting languages have many things in common. They have no affirmation of variables, and simple and suitable word order that make them easy to use ad to learn. In addition, they easily go together with GUIs, simulation, and visualization. However, Matlab and Octave are more independent languages, while Python requires coupling with several other packages in order to make an environment of reasonable functionality. Federico argues that, dynamic typing is easily found in scripting languages such as Python, while in Matlab and Octave both dynamic and static...
5 Pages(1250 words)Research Paper

Introduction to Languages

...: get me a glass of water and a plate of sausage. A person who understands a language should be able to use skills to join sentences to avoid repetition of some words during communication. The following chart shows all parts of speech in English Language (Hacker 2009). A person with good mastery skills must make use of the parts of speech correctly. PART OF SPEECH FUNCTION EXAMPLES OF WORDS Verb Word of action Sing, work, plant, and sit. Noun Name of something or person Dog, pen, cow, man, and music Adjectives Words that describe nouns An/a interesting , big, good, well Adverb Word that describe adverbs, verbs or adjectives Silently, quickly, really, badly pronoun A word that can replace...
7 Pages(1750 words)Essay

Multi-Paradigm Programming Languages

...and constraint based programming is the most suited for search problems. Each programming paradigm allows certain techniques and functions and forbids certain others. One example of this is that functional programming does not allow the use of side-effects and structured programming has forbidden the use of go to statement. Due to these feature programmers who are versed in one programming paradigm find it difficult to work in another. However for programmers working on that particular paradigm, the ban on certain techniques makes it easy to understand the flow of the program and its implications. The most common types of programming paradigms are the following – Imperative...
3 Pages(750 words)Essay

Programming Languages

...the different aspects of the computer language including programming paradigm. The categories include: the procedural programming languages, structured programming languages, object oriented programming languages, functional programming languages, event driven programming, compiled and interpreted computer programming languages (Hurst, n.d). The computer languages are based on the syntax and semantic rules. It is pertinent to compare the programming languages based on the categories of the languages as well as predefined comparison criteria should be used. The paper...
7 Pages(1750 words)Essay

Web Languages

...CW assessment for mark up languages for the web Word Count: 1500 {Introduction to Conclusion} Contents of the Report: Introduction. Markup Languages. Evolution of XML. Case studies. Conclusion. References. Introduction 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. This had to be carried out by implemented various styles (Natanya Pitts-Moultis and Cheryl Kirk, 1998). The problem faced was that various clients would adapt different styles of their choice which might result in...
6 Pages(1500 words)Essay

Modern Foreign Languages

...MODERN FOREIGN LANGUAGES (How is the Study of Languages Implemented within Primary Schools Which Languages are offered to Primary School Children and, How is this being taught) MODERN FOREIGN LANGUAGES CONTENTS: Abstract 1 Key Words 2 Acknowledgements 3 Introduction 4 Literature Review 4 The Investigation and Its Setting 9 Methodology 10 Research Activity 11 Findings and Analyses 12 Conclusions, Professional Values and Recommendations 12 References 13 Appendices 14 1 ABSTRACT Modern Foreign Languages (MFL) study, as a part of...
12 Pages(3000 words)Essay

Misbeliefs about languages

... Misbeliefs about languages There are many misconceptions about language as well as language acquisition. For this reason, it is important to cite supporting evidence against such false beliefs or perception. The following paragraphs are the five arguments disputing the false claims about language. The first false premise is that “kids need to study for years in school to learn to speak their language properly”. This is a false argument especially if we are going to base this on several theories of first language acquisition. Children need not study in school to be proficient in their language since the relational frame theory suggest that children naturally acquire their language through interaction with their own environment... ...
4 Pages(1000 words)Essay

Endangered languages

...Endangered languages Numerous languages have become extinct in the past century and many more are following suit at a rampant pace. Recent statistics show that about ninety percent of the currently existing languages are expected to become extinct in the next one century (Dugan 8). According to studies 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 main factors attributing to the extinction of some languages and the possible...
3 Pages(750 words)Essay


...Draft Language is the manner on how living creatures communicate with each other. They come in many forms. They could be the spoken language, sounds and symbols. Language are necessary for survival. Language can come through the spoken language. Humans communicate using the spoken language with the use of vocabularies, grammar and syntax. Noam Chomsky explained that this is so because of the human being’s brain structure that allows speech. Human beings also have vocal tracts that allows the use of spoken language. The spoken language is a uniquely human characteristic because other animals cannot...
3 Pages(750 words)Essay
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.

Let us find you another Essay on topic Functional languages vs. imperative languages for FREE!

Contact Us