Email or username:

Password:

Forgot your password?
Devine Lu Linvega

Someone sent me an email to congratulate me on abusing COMEFROMs, in Uxntal. I had no idea what that meant until today:

COMEFROM is an obscure control flow structure used in some programming languages, originally as a joke. It is the inverse of GOTO in that it can take the execution state from any arbitrary point in code to a COMEFROM statement.

en.wikipedia.org/wiki/COMEFROM

5 comments
sqrt(-1)

@neauoire "Depending on the language used, multiple COMEFROMs referencing the same departure point may be invalid, be non-deterministic, be executed in some sort of defined priority, or even induce parallel or otherwise concurrent execution as seen in Threaded Intercal."

this is awesome!

Simon Harris

@neauoire did you manage to exploit something you didn’t know about by accident? 🙀

Devine Lu Linvega

@haruki_zaemon In my code I commented it as "callback?", because it kindda looks like one at a glance, but apparently this has a name. TIL

ratfactor

@neauoire INTERCAL! Just don't implement "PLEASE". 😂

eiZen

@neauoire Yes. It was one of the arguments why INTERCAL is better than Perl, which has GOTO and as we all know that is considered harmful. :-)

articles.mongueurs.net/spoofat

GOTO Considered Harmful

A well-known fact in programming is that GOTO is considered harmful. Therefore, a programmer should never, under any circumstances, use this 4-letter word. Yet, it exists in Perl. On the other side, INTERCAL has resolutely discarded this despicable thing. If you need to alter the flow of your program in any way, you just use the incomparably better COME FROM statement.
Go Up