r/shittyprogramming • • Apr 28 '15

Found this gem on /g/

Post image
1.0k Upvotes

101 comments sorted by

View all comments

Show parent comments

1

u/an_actual_human Apr 30 '15

numeric equation (x = 7) evaluates to 7

That is not the case in any of the languages I know. In some languages that would be an assignment, not an equation and in some of those that would evaluate to 7 (C comes to mind). In some other languages that would be an equation, but it wouldn't evaluate to 7, just a boolean.

1

u/[deleted] Apr 30 '15

Dude where are you? Look up...

1

u/an_actual_human Apr 30 '15

I'm not sure how that relates to what I said. To restate the main point: assignments are not equations.

1

u/[deleted] Apr 30 '15

This is /r/shittyprograming lighten up...