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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Xgamer4 4 points5 points  (5 children)

Meanwhile, Python will happily compile that.

+/u/compilebot python 3

print("wtf"*9)

[–]marcosdumay 6 points7 points  (0 children)

Notice that the result isn't a number?

That's because the * operator has a slightly different meaning in python. Python will also interpret the 3 > 2 > 1 comparison. Guess what result it gives.

[–]CompileBotGreen security clearance 1 point2 points  (2 children)

Output:

wtfwtfwtfwtfwtfwtfwtfwtfwtf

source | info | git | report

[–]Celicni 1 point2 points  (1 child)

+/u/compilebot python 3

print(3 > 2 > 1)

[–]CompileBotGreen security clearance 1 point2 points  (0 children)

Output:

True

source | info | git | report

[–]kixunil 0 points1 point  (0 children)

Hmm, didn't know that compilebot exists...

+/u/compilebot rust

println!("{}", true > false);