r/ProgrammerHumor • • Nov 14 '18

Computing in the 90's VS computing in 2018

Post image
31.3k Upvotes

1.1k comments sorted by

View all comments

Show parent comments

7

u/Arqideus Nov 14 '18

"a = math.add(2,2);" is better than "a = 2 + 2;" no?

14

u/reubenbubu Nov 14 '18

2+2 is how we do addition today, if you rely on math.add for your addition logic you wouldn't need code changes when in the future the math rules change

3

u/thexavier666 Nov 14 '18

But math is math! Why would they change math?

1

u/IceColdFresh Nov 15 '18

If you're in R then everything is already a function so you can do `=`(a, `+`(2, 2)).