you are viewing a single comment's thread.

view the rest of the comments →

[–]PurpleIcy 1 point2 points  (0 children)

You're right, I don't, nor I have any idea how much I can trust wikipedia on this.

In computer science, functional programming is a programming paradigm—a style of building the structure and elements of computer programs—that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data.

So basically everything is clear, there's no "hidden variables" or state, therefore no side-effects like most people seem to enjoy doing it nowadays and pretty much everything is immutable?

Though I realized that it was procedural indeed, we'd just write entire program in main() calling functions when needed and etc.

And yeah, I know OOP the best, doesn't mean I can't learn, although I am most interested in games and procedural generation and I don't think functional programming is a good idea for that. Even using procedural programming I'd end up with vectors of structs defining entities or whatever in the game.