Difference between revisions of "Talk:2200: Unreachable State"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
("Can't happen": new section)
Line 3: Line 3:
  
 
nothing about the comic suggests a website. it looks more like the error message of a program. also, i don't think CB is typing it, just reading. [[Special:Contributions/172.68.50.124|172.68.50.124]] 06:20, 11 September 2019 (UTC)
 
nothing about the comic suggests a website. it looks more like the error message of a program. also, i don't think CB is typing it, just reading. [[Special:Contributions/172.68.50.124|172.68.50.124]] 06:20, 11 September 2019 (UTC)
 +
 +
== "Can't happen" ==
 +
 +
This comic is not about "a problem that the programmers did not anticipate", but rather a situation that the programmer rules out as impossible, which is technically called "Can't happen" or "Impossible Error" in the hacker/programmer's jargon. See http://catb.org/jargon/html/C/can-t-happen.html
 +
 +
For example:
 +
<source lang=php>
 +
for ($i=1;$i<=5;++$i) {echo $i." - ";}
 +
if ($i<10) {echo "Bye!";} else {echo "Can't happen!";}
 +
</source>
 +
 +
[[User:ElfQrin|ElfQrin]] ([[User talk:ElfQrin|talk]]) 07:14, 11 September 2019 (UTC)

Revision as of 07:14, 11 September 2019

When I tried to go here originally, it was unreachable. 162.158.107.61 03:54, 11 September 2019 (UTC)

nothing about the comic suggests a website. it looks more like the error message of a program. also, i don't think CB is typing it, just reading. 172.68.50.124 06:20, 11 September 2019 (UTC)

"Can't happen"

This comic is not about "a problem that the programmers did not anticipate", but rather a situation that the programmer rules out as impossible, which is technically called "Can't happen" or "Impossible Error" in the hacker/programmer's jargon. See http://catb.org/jargon/html/C/can-t-happen.html

For example:

for ($i=1;$i<=5;++$i) {echo $i." - ";}
if ($i<10) {echo "Bye!";} else {echo "Can't happen!";}

ElfQrin (talk) 07:14, 11 September 2019 (UTC)