What is the difference between procedural programming and functional programming? [closed]
问题 I\'ve read the Wikipedia articles for both procedural programming and functional programming, but I\'m still slightly confused. Could someone boil it down to the core? 回答1: A functional language (ideally) allows you to write a mathematical function, i.e. a function that takes n arguments and returns a value. If the program is executed, this function is logically evaluated as needed. 1 A procedural language, on the other hand, performs a series of sequential steps. (There's a way of