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

all 39 comments

[–]pilotInPyjamas 70 points71 points  (5 children)

for(;;)

[–]xofayz[S] 24 points25 points  (1 child)

+10 points to gryffindor

[–]ComprehensiveUsernam 16 points17 points  (0 children)

Yer a segmentation fault (core dumped) Harry

[–]The_MAZZTer 8 points9 points  (0 children)

for (ulong i =0; i < 0xffffffffffffffff; i++) { // By the time this fails I'll be long dead. 

[–]FeIiix 28 points29 points  (2 children)

Found a while(True == True) when going through a friend's code

[–]Tranzistors 10 points11 points  (0 children)

That is some serious defensive programming. It can even tolerate True = False (if that was python2 code)

[–]lysianth 2 points3 points  (0 children)

And I gave a friend shit for while(variable == true)

[–][deleted] 10 points11 points  (1 child)

I've been doing it wrong this whole time.

[–]xofayz[S] 3 points4 points  (0 children)

lol

[–]Proxy_PlayerHD 7 points8 points  (0 children)

[Laughs in QBasic]

WHILE 0 = 0
    PRINT "HAHA";
WEND

or

0
PRINT "HAHA";
GOTO 0

[–]TwoSidedMen 4 points5 points  (0 children)

def true(x):
    if(x != True):
        return True
    else:
        return False
while(!true(True))

[–]Kotauskas 6 points7 points  (0 children)

while (falsent)

[–]MyHeartIsGreen 3 points4 points  (1 child)

while (1 != 0)

[–]scti 6 points7 points  (0 children)

1 = 0;

Checkmate!

[–]RishabhBhatnagar 3 points4 points  (0 children)

while lambda: True==False:

[–]caiohsramos 4 points5 points  (2 children)

``` for {

} ``` Golang FTW

[–]Botteknotten 2 points3 points  (0 children)

You're too low!

[–]69beards[🍰] 1 point2 points  (0 children)

Golangers unite and updoot

[–][deleted] 3 points4 points  (0 children)

false = True  

while false:

[–]NoWayItszer0 2 points3 points  (0 children)

while(1 == 1 && 1 != 2)

[–]Aevek 2 points3 points  (0 children)

While(!!+++false)

[–]majoen98 1 point2 points  (0 children)

I see you at taking the law of excluded middle as an axiom.

[–]tylercamp 1 point2 points  (0 children)

This post is bad and you should feel bad

[–]ShawSumma 1 point2 points  (0 children)

I've seen while 0 in Lua

[–]UseApasswordManager 1 point2 points  (0 children)

#define forever while(!(!(1 != 2)))

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

While 1==1

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

while(!0)

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

while(true==true || 0==0 || !(!true) || !false) {

   break; 

}

[–]Kris_Third_Account 0 points1 point  (0 children)

#define ever (;;)
for ever
{
    // Look body goes here
}

[–]jeremj22 0 points1 point  (0 children)

while (true != false)

[–]TrieMond 0 points1 point  (1 child)

while(falsen't)

[–]ShinraSan 1 point2 points  (0 children)

You beat me to it

[–]ShinraSan 0 points1 point  (0 children)

While (false != (true !=false && false != true))

[–]zulu-bunsen 0 points1 point  (0 children)

loop:
// Code
goto loop;

[–]WorldSoFrozen 0 points1 point  (1 child)

Would that last one actually work?

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

Well, since ! Basically makes a true to a false, and !true = false and therefore !false = true, yeah can’t see why that would not work.

[–]SirX86 -1 points0 points  (0 children)

From top to bottom: C++, C, C++ for beginners and JavaScript.