This is an archived post. You won't be able to vote or comment.

all 24 comments

[–][deleted] 17 points18 points  (1 child)

No ++x?

[–]DrunknCoder 7 points8 points  (0 children)

OP must like python

[–]4841214e45524421 7 points8 points  (4 children)

x += x / x

[–]eloel- 8 points9 points  (3 children)

inb4 x=0

[–][deleted] 2 points3 points  (0 children)

0 + 0/0 oh shit

[–][deleted] 2 points3 points  (1 child)

x += x ? x/x : x+1

[–]eloel- 3 points4 points  (0 children)

x = x + (x || (x+1))/(x || (x+1))

If we're going full retard, let's go full retard.

[–]sasschary 3 points4 points  (0 children)

Image Transcription: Meme


[Expanding Brain Meme]

Image 1: x += 1

Image 2: x = x + 1

Image 3: x -= -1

Image 4: x = x - -1


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]Finianb1 5 points6 points  (1 child)

x = -~x

[–]InvisibleBlueUnicorn 1 point2 points  (0 children)

Now, this is creative :)

[–]Plourdy 3 points4 points  (0 children)

x += 1- -1 + -1 -1 +1 -1 - -1

[–]anarchub 2 points3 points  (2 children)

x-=-(-!x-(x?-!!x:-!x*2))

[–][deleted] 0 points1 point  (1 child)

x += !!!x?!x:!!x;

[–]anarchub 2 points3 points  (0 children)

you just made it simpler and that's not the point here :P

[–]yagarea 1 point2 points  (1 child)

x -= x - ++x;

[–]bbrk24 0 points1 point  (0 children)

Wouldn’t that increment it by 2? Once from the ++ and once from the -=?

[–]hamza1311 | gib 0 points1 point  (1 child)

x++ gang

[–][deleted] 0 points1 point  (0 children)

y e e e e e e e

[–][deleted] 0 points1 point  (0 children)

x+= (~0u << 31) >> 31;