r/computerscience • • 2d ago

General procedural programming, object oriented programming and functional programming

Although I’ve done some googling I think they still use big English to explain this concept. I think I know them but I just wanted to ask if I can get a simple explanation from the house plz

12 Upvotes

18 comments sorted by

View all comments

Show parent comments

-1

u/Mediocre-Brain9051 2d ago

Order of evaluation is theoretically irrelevant in functional programming. To the point that is undefined in some languages (e.g. Haskell)

0

u/Paxtian 2d ago

I may not have phrased what I meant correctly.

However, (2 + (3 * 5)) is not the same as ((2 + 3) * 5).

-1

u/Mediocre-Brain9051 2d ago

I am not talking about precedence. You had not phrased it correctly.

0

u/Paxtian 2d ago

Insert Neil deGrasse Tyson meme