<pedrocorreia.net ⁄>
 

<Does Functional Programming Really Matter? ⁄ >




clicks: 195 195 2007-04-22 2007-04-22 goto misc myNews misc  Bookmark This Bookmark This


To answer the question of whether or not the code examples in "Why Functional Programming Matters" truly constitute a demonstration of the superiority of functional programming, one must first ask what it means for those programs to be implementable in other languages. Most languages of interest are Turing complete, and therefore compute the same functions. Clearly, then, we are looking for a more direct transformation into the target language.

One approach would be to consider the features of functional programming that are claimed by Hughes to set it apart, and then to see if each one of these can be emulated in a simple manner in the target language. If we fail to emulate a feature, we gain a fairly good understanding of where the language falls down; if we succeed, we can go ahead and use an empirical method as added evidence that the target language is as powerful as Lisp.

Another alternative would be to look at how programs in the source language might be implemented in the target language, in effect creating a translation from one language to another. This can be accomplished either by re-implementing the examples directly, or by examining correspondences between the languages in a more general fashion.

In this project, we demonstrate a Java emulation (section 2) and a C# tanslation (section 3) of the Hughes code snippets. We conclude that (modulo a few tradeoffs) the same level of modularity and code reuse can be achieved in object-oriented programming as in functional programming, making it more a choice of style than of necessity. We also present some benefits of object-oriented programming from the software engineering perspective. We discuss these tradeoffs (section 4).



este é só um excerto do artigo, para aceder ao artigo completo, clique no link em baixo:
this is just a small excerpt from the article, to access the full article please click in the link below:

http://www.cs.utexas.edu/~arvindn/hughes/




Subscribe News RSS  Subscribe News Updates by E-mail





myNews <myNews show="rand" cat="misc" ⁄>

The 3 Levels of Programmers: Good, Lazy, and Bad

Programmers can be divided into those that build libraries and toolkits, those t (...)

clicks: 214 214 2008-01-11 2008-01-11 goto url (new window) guydavis.ca/log... goto myNews misc


Reasons Why CSS Is Superior to Tables in Website Design

For the past few days, we've been scouring the web searching for the top 13 reas (...)

clicks: 175 175 2008-04-05 2008-04-05 goto url (new window) chromaticsites.... goto myNews misc


How To Build a Game In A Week From Scratch With No Budget

An RPG in a week, starting from scratch? How hard could it be? I did it becau (...)

clicks: 156 156 2008-04-16 2008-04-16 goto url (new window) gamedev.net/ref... goto myNews misc


A Guide to CSS Support in Email: 2007 Edition

It's been just over 12 months since I posted our original Guide to CSS Support i (...)

clicks: 239 239 2007-06-07 2007-06-07 goto url (new window) campaignmonitor... goto myNews misc


Who Runs Microsoft Now?

As the sun sets on Jim Allchin's Microsoft career, the dawn ahead holds uncertai (...)

clicks: 223 223 2007-02-02 2007-02-02 goto url (new window) microsoft-watch... goto myNews misc


Free Vector World Maps Collection

Free vector world maps can not be found easily as there are only few around. (...)

clicks: 175 175 2008-05-23 2008-05-23 goto url (new window) webresourcesdep... goto myNews misc


5 Useful Coding Solutions For Designers and Developers

Often creative and truly remarkable design solutions remain unknown because we, (...)

clicks: 203 203 2008-08-12 2008-08-12 goto url (new window) smashingmagazin... goto myNews misc


MySpace e Hi5 juntam-se ao Google

O MySpace, site de relacionamentos mais popular do mundo, juntou-se ao Google no (...)

clicks: 222 222 2007-11-03 2007-11-03 goto url (new window) portugaldiario.... goto myNews misc