198
submitted 11 months ago by Ephera@lemmy.ml to c/programmerhumor@lemmy.ml
top 7 comments
sorted by: hot top controversial new old
[-] stingpie@lemmy.world 12 points 11 months ago

Rust isn't real. Its just a bit much of abbreviated gibberish created by religious fanatics worshipping safe programming practices and reasonable error handling!

[-] pecet@lemmy.world 2 points 11 months ago

Wait until you learn about Lisp

[-] conneru64@lemmy.blahaj.zone 2 points 11 months ago

You're going to borrow-checker hell now

[-] lightnegative@lemmy.world 6 points 11 months ago

ngl, this meme tickled me

[-] lseif@sopuli.xyz 1 points 10 months ago

is that valid syntax in any context? i dont think it is

[-] Ephera@lemmy.ml 4 points 10 months ago

Pretty sure, it's not. That's why I included the error highlighting.

To make it a valid struct field, you'd need to throw in a Box+dyn:

pub pint: Box

For a function parameter, you need an impl and can't have the pub:

pint: impl Sized

Obviously, you could define your own struct or generic that also happens to be called Sized, but yeah, that's cheating.

[-] lseif@sopuli.xyz 2 points 10 months ago

thats what i figured. thanks :-)

this post was submitted on 20 Dec 2023
198 points (96.7% liked)

Programmer Humor

32559 readers
945 users here now

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

Rules:

founded 5 years ago
MODERATORS