3 points

I present to you quality variable names. (and a Mount Rustmore)

(Reconfigure(f), 'c') => {
    let mut p: Vec<&str> = vec![];
    loop {
        match args.next() {
            Some(k) => {
                if k == "=" {
                    match args.next() {
                        None => q("need value for Rc"),
                        Some(v) => u(
                            f,
                            |f| Box::new(
                                |c| {
                                    f(c);
                                    c.set(p.iter().copied(), v);
                                    for e in p {
                                        unsafe {
                                            Box::<str>::from_raw(
                                                std::mem::transmute(e)
                                            );
                                        }
                                    }
                                }
                            )
                        )
                    };
                    break
                } else {
                    p.push(Box::leak(k.into()));
                }
            }
            None => error("need path element or = for Rc"),
        }
    }
},
permalink
report
reply
1 point

what is this for ?

permalink
report
parent
reply
2 points

Argument parsing; turning Rc foo = bar into Reconfigure(|c| c.foo = "bar").

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
reply
3 points

Ok, but what variable is 🐈?

permalink
report
reply
2 points

Is the function to con🐈eate and print.

permalink
report
parent
reply
3 points

It took me too long to figure out the I in an if statement was just integer

permalink
report
reply
2 points

In a for statement, it often refers to index

permalink
report
parent
reply
8 points

Am I being gaslit?

permalink
report
reply
5 points

Gasboss gatelit girlkeep

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

Community stats

  • 8.2K

    Monthly active users

  • 1.2K

    Posts

  • 42K

    Comments