you are viewing a single comment's thread
view the rest of the comments
[–] 23 points 1 year ago* (2 children)

I just realized that the 2 characters in the back of the truck originally aren’t there, and then they randomly appear. It’s in the original episode too.

  • source
  • hideshow 2 child comments
  • [–] 7 points 1 year ago

    I'm trying to come up with a good pun how ownership and safety could have prevented this but..

    use std::sync::OnceLock;

    #[derive(Debug)] struct BrainCell { in_use: bool, }

    static BRAIN_CELL: OnceLock = OnceLock::new();

    fn get_brain_cell() -> &'static BrainCell { BRAIN_CELL.get_or_init(|| { println!("Allocating brain power... this might take a while."); BrainCell { in_use: true } }) }

  • source
  • parent