c/programmerhumor · by Ephera@lemmy.ml · 2yAfter a day of coding Rust... 187 points · 7 comments · view on lemmy.world
7 Comments
stingpie@lemmy.world · 12 pts · 2y
Rust isn't real. Its just a bit much of abbreviated gibberish created by religious fanatics worshipping safe programming practices and reasonable error handling!
conneru64@lemmy.blahaj.zone · 2 pts · 2y
You're going to borrow-checker hell now
pecet@lemmy.world · 1 pts · 2y
Wait until you learn about Lisp
lightnegative@lemmy.world · 6 pts · 2y
ngl, this meme tickled me
lseif@sopuli.xyz · 1 pts · 2y
is that valid syntax in any context? i dont think it is
Ephera@lemmy.ml · 4 pts · 2y
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:
For a function parameter, you need an
impland can't have thepub: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 pts · 2y
thats what i figured. thanks :-)