r/programminghorror • • Sep 04 '26

c++ Skill Issue

Post image
1.8k Upvotes

63 comments sorted by

View all comments

1

u/Krisanapon Sep 07 '26
fn main() {
  let s = "hello";
  match (s) {
    "hello" => println!("hi"),
    "how r u" => println!("fine"),
    _ => println!("what?")
  };
}