• pro3757@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    It’s in Intercal, a joke language from '70s. Mark Rendle describes it here in his talk at NDC. This whole talk is ridiculous btw.

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      2
      ·
      5 months ago

      This is the same language where you have to say PLEASE sometimes or it won’t compile. But if you say PLEASE too much, the compiler will think you’re pandering and also refuse to compile. The range between too polite and not polite enough is not specified and varies by implementation.

  • mossy_@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    Guy who worked at my place before me kept using these and GOTO statements all over the place.

    His name? Cotton-eyed Joe

  • rand_alpha19@moist.catsweat.com
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    That sounds like a fucking nightmare. I had to troubleshoot poorly-written-yet-somehow-functional GOTOs a lot when I was a BAS technician and that’s annoying enough.

  • umbrella@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    am i the only dumb fuck here who unironically likes this?

    would make goto type situations much more usable

    • Cethin@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      I don’t see any case where this is better than a goto. A goto you can read progressively though. A comefrom you’d see written then have to track to that piece of code and remember there’s a potential hidden branch there.

    • Doesn’t it steal control flow? More like a break point, except you define where execution continues.

      I wonder if it’s a compile error to have multiple conflicting COMEFROM statements, or if it’s random, kind of like Go’s select statement.

      How awesome would it be to be able to steal the execution stack from arbitrary code; how much more awesome if it was indeterminate which of multiple conflicting COMEFROM frames received control! And if it included a state closure from the stolen frame?

      Now I want this.

      • davidgro@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        5 months ago

        I wonder if it’s a compile error to have multiple conflicting COMEFROM statements

        I think there’s at least one INTERCAL implementation where that’s how you start multi-threading