Federation Red
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
JPDev@programming.dev to Programmer Humor@programming.dev · 1 year ago

COMEFROM

programming.dev

message-square
15
fedilink
13

COMEFROM

programming.dev

JPDev@programming.dev to Programmer Humor@programming.dev · 1 year ago
message-square
15
fedilink
alert-triangle
You must log in or register to comment.
  • s12@sopuli.xyz
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    PLEASE COMEFROM 🏷

  • pro3757@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    1 year 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
      4
      ·
      1 year 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.

      • Whelks_chance@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I love how arbitrary, cultural and opinionated that must be to work with. You’d learn something about the implimenter of the compiler by using it for a while.

      • CO5MO ✨@midwest.social
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        This is hilarious!

  • mossy_@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

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

    His name? Cotton-eyed Joe

    • lseif@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      where did you COMEFROM where did you GO…TO

      • Match!!@pawb.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        where did you COMEFROM, cottonEyedJoe2

  • rand_alpha19@moist.catsweat.com
    link
    fedilink
    arrow-up
    2
    ·
    1 year 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.

  • Sonotsugipaa@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Wh… what do you mean, “originally as a joke”?

  • neo@lemy.lol
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    COMEFROM is my go to function;

  • lseif@sopuli.xyz
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    more practical than goto

  • starman@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Looks like C# 12 interceptors:

    [InterceptsLocation(@"C:\testapp\Program.cs", line: 4, column: 5)]
    

    I know it looks awful, but it’s not intended for direct use, but rather for source generators for native ahead of time compilation.

    https://andrewlock.net/exploring-the-dotnet-8-preview-changing-method-calls-with-interceptors/

  • ☂️-@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 month ago

    deleted by creator

    • Cethin@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year 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.

  • onlinepersona@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    arrow-down
    1
    ·
    1 year ago

    I honestly thought C++ (aka dumping ground of programming concepts) would implement this for “completeness”.

    Anti Commercial-AI license

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 314 users / day
  • 3.58K users / week
  • 9.03K users / month
  • 19.8K users / 6 months
  • 1 local subscriber
  • 24.7K subscribers
  • 1.2K Posts
  • 29.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: 0.19.8
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org