There's no such thing as a functional or OO language

Please compose all posts in Emacs.

Moderators: phlip, Moderators General, Prelates

There's no such thing as a functional or OO language

Postby zenten » Sat Apr 12, 2008 10:13 pm UTC

There isn't even such a thing as an imperitive language, except for some (usually quite old) languages that are imperative only.

What you have is different languages supporting different features, which people arbitrarily fit into some box. The real problem is this is often the language creators doing it.
zenten
 
Posts: 3765
Joined: Fri Jun 22, 2007 7:42 am UTC
Location: Ottawa, Canada

Re: There's no such thing as a functional or OO language

Postby quintopia » Sun Apr 13, 2008 11:23 pm UTC

Translation:

There are no languages that emphasize application of functions over changes in state, nor are there languages that facilitate and encourage the use of encapsulation, inheritance, modularity, and polymorphism, nor are there languages whose primary focus is on the change over time of some global state.

Rebuttal: Just because high-level programming languages don't tend to limit their users to one of the above paradigms, the above descriptions collectively describe most programming languages. No one is trying to put anything in a box, but only trying to encourage a certain manner of thinking.
User avatar
quintopia
 
Posts: 2790
Joined: Fri Nov 17, 2006 2:53 am UTC
Location: atlanta, ga

Re: There's no such thing as a functional or OO language

Postby Fixman » Sun Jun 08, 2008 4:00 am UTC

Its all a lie. Open your eyes!
Fixman
 
Posts: 4
Joined: Mon Jun 02, 2008 10:45 pm UTC

Re: There's no such thing as a functional or OO language

Postby <insert witty name> » Sun Jun 08, 2008 9:43 am UTC

Well ... partially:

Take for example Java/C#: Of course, I can do functional (not object oriented) Programming with it. But the language slaps me in the face, every time I do so, by making me write
Code: Select all
public class Whatever{
   public static int doSomething(int arg){
      //...
   }
}

instead of
Code: Select all

int doSomething(int arg){
   //...
}


So the language doesn't force me to use a certain paradigm. But it constantly nags until I resign and do it the language's way.


Another example would be Python: Of course you can program in Python like you would in Java. But then Python would just be a crippled language that doesn't even have Interfaces or Variable Declarations. The real fun begins when you use Python the Python Way!
<insert witty name>
 
Posts: 29
Joined: Mon Aug 27, 2007 10:00 pm UTC

Re: There's no such thing as a functional or OO language

Postby DubioserKerl » Sun Jun 08, 2008 12:42 pm UTC

That is why people invented differen programming languages.

E.g. why would you do functional programming in JAVA when you could use HASKELL ?

DK
Image
User avatar
DubioserKerl
 
Posts: 71
Joined: Sat Jun 07, 2008 8:23 am UTC

Re: There's no such thing as a functional or OO language

Postby evilbeanfiend » Sat Jul 12, 2008 9:12 am UTC

zenten wrote:There isn't even such a thing as an imperitive language, except for some (usually quite old) languages that are imperative only.

What you have is different languages supporting different features, which people arbitrarily fit into some box. The real problem is this is often the language creators doing it.


essentially your argument is that all taxonomy is flawed and :. pointless?

yes it is flawed, as with any abstraction you lose information by simplifying the raw data to fit into a model. but this doesn't mean that fitting things into boxes in general is a bad idea, it eases thought and communication about the 90% of cases that fit the boxes at the cost of worsening it for the 10% that don't fit well. specifically for the classification of languages it helps us communicate which languages and techniques are suitable for different tasks.
in ur beanz makin u eveel
User avatar
evilbeanfiend
 
Posts: 2650
Joined: Tue Mar 13, 2007 7:05 am UTC
Location: the old world

Re: There's no such thing as a functional or OO language

Postby crp » Sun Jul 13, 2008 3:28 am UTC

NO LANGUAGES FUNCTION!

Lol but yeah I once took this really crappy scripting language a friend made and spent like 3 hours making a module that accomplished OO capability(which isn't actually that hard with just a few pointers) and realized wow, any language can do anything
crp
 
Posts: 118
Joined: Tue Oct 16, 2007 1:17 am UTC


Return to Religious Wars

Who is online

Users browsing this forum: No registered users and 2 guests