<div dir="ltr"><div class="gmail_default" style="font-size:large">I think functional programming really help simplifying the things: you need to do a complex thing, so you build it with more simple functions that you compose, you make a simple function and reuse it in a more complex one... for each function you have arguments in input and get an object (list, array, int ,string....) in output.</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">OO programming seems at first glance to provide a way to do this by calling methods of a class that are encapsulated in it, but when using  a method of a class you always have to instantiate an object, you have to set some things before doing the work. For any simple things your minds tends to create virtual or real classes that you will perhaps have the needs,example you needs a square object, nothing else, but you will tends to create first edges, as class of square, and put square in a super class named polygons which will also be in a class of.... you understand the problem? ;-)</div><div class="gmail_default" style="font-size:large">so after another people reading your code will say,  "hey what's all this mess?" , and you're code will be hard to read , and even for you when making big program you will have tons of classes, inheritance and will move in a maze of classes!!! a nightmare.... sometimes, i experienced it! at the opposite functional programming is so easy, so clear for your mind.</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">If you had strong typing which almost always the case in OO programming, non immutable object like in C++, copy constructor, object requiring canonical normal form of Copine,</div><div class="gmail_default" style="font-size:large">OO programming can become really stressing to develop with in my opinion.</div><div class="gmail_default" style="font-size:large">Damien</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 11, 2019 at 8:18 AM PY <<a href="mailto:aquagnu@gmail.com">aquagnu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">10.03.2019 23:50, Ramnath R Iyer wrote:<br>
> whereas functional relies on categorization based on 'what actions can <br>
> be done' (aka functions)<br>
that's what interfaces are for.<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div>