Skip to content
View A1029384756's full-sized avatar

Block or report A1029384756

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
A1029384756/README.md
use anyhow::Result;
use rand::seq::SliceRandom;

fn main() -> Result<Product> {
    let programmer: Programmer = Programmer{
        name: "Hayden Gray",
        languages: 
            vec!["Python",
            "C", 
            "C++",
            "Rust",
            "Odin",
            "Dart",
            "JS/TS",
            "Terraform"
            ]};

    programmer.hello_world();
    programmer.do_work()
}

struct Programmer {
    name: str,
    languages: Vec<str>,
}

impl Programmer {
    fn hello_world(&self) -> String {
        format!("Hello, my name is {} ", self.name)
    }

    fn do_work(&self) -> Result<Product> {
        let language = self.languages.choose(&mut rand::thread_rng());
        let mut done: bool = false;
        let mut product: Result<Product>;

        while !done {
            //Do Work
        }

        product
    }
}

Pinned Loading

  1. mixologist mixologist Public

    Odin 1

  2. nix-config nix-config Public

    Nix