@BlinkRape because it is borderline incomprehensible until you know the answer

@beardalaxy @BlinkRape It just depends on paradigm and definition of = as either comparison or variable assignment operator. Within the imperative, and = being an assignment, it would be 30 after evaluation is complete. Within the functional, and = being the comparison, the result of expression would be false and x will remain 23.
@iamtakingiteasy @beardalaxy I don't care one way or the other, the answer is 30 and any other way of doing shit that implies otherwise is wrong and was invented by a retard.

it's also a stupid problem made by someone who thought they were being clever. The answer will always be 30, because in any other space, the statement itself would be illegal as written

@BlinkRape @iamtakingiteasy @beardalaxy
30 = 30+7?
nah, I don't think so. That problem is simply invalid.

The first part has one solution of x=23, but the 2nd half has no possible solutions.

@LukeAlmighty @iamtakingiteasy @beardalaxy

No, the answer is 30. I shouldn't even have to explain this.

x is declared to be an initial value of 23
"x = x +7" is adding 7 to the value of X

23 + 7 = 30

that's all there is to it.

The "trick" is that in some fields, the second part is a comparison test and should return a true or false result. But it's intellectual jewry and just meant to fuck with the average person who does not use that nomenclature when doing everyday math, so that is why it is invalid anywhere outside of the academic setting it originated from.
@LukeAlmighty @beardalaxy @iamtakingiteasy computer programmers solved this stupidity a long time ago when they started writing languages that had distinctive functions for comparison operators
@beardalaxy put this in my erlang interpreter and it called you a fucking nerd
@beardalaxy i replaced my water system with gatorade, i bench zf trannies, im gonna shove u into a locker

@churkia you can actually liquid cool your computer with zero-sugar powerade/gatorade.

@churkia i've been in the locker for years actually but hey, it's better than being in the closet.

@beardalaxy i broke out of the closet years ago, my father locked me in there for raping the family dog so i RAPED him back
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.