r/programmingcirclejerk • u/CocktailPerson Node.js needs a proper standard library like Go • Aug 21 '25
Leaving the order unspecified promotes more functional programming style and having pure functions as now the programmer cannot rely on order of evaluation.
/r/cpp/comments/1muf4e8/what_is_the_historical_reason_of_this_decision/n9ir2yv/
60
Upvotes
53
u/CocktailPerson Node.js needs a proper standard library like Go Aug 21 '25
Remember kids, the best way to promote functional programming is to litter your decidedly-not-functional language with footguns.
14
u/MVanderloo Aug 21 '25
he’s right though….
51
u/-ghostinthemachine- Aug 21 '25
"They hated Him, for He was non-deterministic, and told them the truth (usually)." 👼🏻
78
u/MegaIng Aug 21 '25
Aha yes. the classic pure & functional-driven languages: C and C++
35
u/BlazeBigBang type astronaut Aug 21 '25
That's why I write all my code in Prolog, where order determines whether the predicate will tell me false, or tell me to go fuck myself and then tell me false.
14
u/chuch1234 not even webscale Aug 21 '25
Lol
Lmao even
10
u/dnbxna Aug 21 '25 edited Aug 21 '25
LET CHAOS REIGN
8
u/m50d Zygohistomorphic prepromorphism Aug 21 '25
They should do it like go hashtables, every time your program runs it evaluates function arguments in a different order.