0

Why function programming is better than other

30th Mar 2017, 9:21 PM
Ibrahim Mtenga
Ibrahim Mtenga - avatar
2 Answers
0
Do you mean using functions in programing , or functional programming like lambdas in Python or using functional languages like Clojure and Elixir? For the first, a lot of programmer's like to be D(on't)R (epeat)Y(ourself). Why should I have to write code that calculates the power of two numbers each time if I only need to it once with a function? It's easier to write and rewrite if I want to change it.
30th Mar 2017, 9:40 PM
Trevor Brick
Trevor Brick - avatar
0
If you use a function, you can call it in that same program when you want to.
30th Mar 2017, 10:03 PM
Blake Lynch
Blake Lynch - avatar