this post was submitted on 11 Jul 2023
122 points (89.1% liked)

Programmer Humor

32482 readers
648 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Arrr, me hearty! Ye be askin' for a simple piece o' code in Rust, peppered with pirate comments. Here be a wee program that prints a hearty greeting:

fn main() {
    // Avast, me hearties! We start our voyage here.
    let greeting = "Ahoy, matey! Welcome aboard!";

    // Yo ho ho! We print our greeting to the open sea!
  println!("{}", greeting);
}

Now ye be havin' a taste o' pirate-infused Rust code! If ye be havin' any more requests or need further assistance, feel free to speak up, and I'll be at yer service!

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] -5 points 1 year ago (1 children)

That in fact is not an hello world project

[โ€“] [email protected] 5 points 1 year ago (1 children)
[โ€“] [email protected] 4 points 1 year ago (1 children)

I guess it's an "Ahoy matey!" Project?

[โ€“] [email protected] 2 points 1 year ago

Fair enough ๐Ÿ‘.