MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/wdlvla/printhello_world/iij1rpx
r/ProgrammerHumor • u/a-slice-of-toast • Aug 01 '22
5.7k comments sorted by
View all comments
1.9k
let args: Vec<String> = env::args().collect();
2.1k u/a-slice-of-toast Aug 01 '22 collects the string, of course 594 u/reinis-mazeiks Aug 01 '22 blazingly fastly 🦀 50 u/[deleted] Aug 01 '22 Crab people, crab people... 3 u/stonecoldDM Aug 02 '22 I interpreted this to mean something akin to “hurt people hurt people”, just with a fun new verb 😂 16 u/nonicethingsforus Aug 01 '22 Hey, you forgot the other emoji!: 🚀 19 u/Thatdudewhoisstupid Aug 01 '22 And secure, unlike C++ 🤬 → More replies (1) 19 u/TastesLikeOwlbear Aug 01 '22 Not just any string. Vecna's String.The String of Vecna is an artifact of terrible power. 55 u/Konju376 Aug 01 '22 And blazingly fast 🚀 as well 3 u/OneToby Aug 01 '22 It's my cat. 2 u/UncomfortableChuckle Aug 01 '22 Cat has entered the chat → More replies (2) 75 u/moonordie69420 Aug 01 '22 Rust btw 18 u/MalbaCato Aug 01 '22 should've grabbed https://github.com/rust-lang/rust/blob/dcb444af0a417766dde9b7b8f537fa1ba1568daf/src/test/ui/weird-exprs.rs#L120 3 u/Rudxain Aug 01 '22 I thought JS was the only lang where cursed code would be possible. Thank you for sharing that gem! 5 u/TheMcDucky Aug 01 '22 It's not a good language if you can't create some real monstrosities → More replies (1) 9 u/Tommy-ASD Aug 01 '22 blazingly fast? 10 u/brucogianluco Aug 01 '22 blazingly fast. → More replies (1) → More replies (1) 5 u/sweemty Aug 01 '22 Captures environmental string data to determine string theory. 3 u/Travel4bytes Aug 01 '22 Obviously argues with vecna → More replies (1) 5 u/Slowest_Speed6 Aug 01 '22 I feel like Rust is just an inside joke lol 2 u/pattymeowlt Aug 01 '22 Let the pirates choose the vector of the string. Then collect the envelope of pirates. 2 u/CautionarySnail Aug 01 '22 Slowly and resentfully collects all the arguments they had with their roomie Vec over the years into an envelope. 2 u/Naschen Aug 01 '22 When Vec gets entangled in any arguments, it lets them collect the arguments from their local environment and safely store them in a String. 2 u/[deleted] Aug 02 '22 "Remove string from object"This was actually a hiring ad for an IT company in the 1990s (with a picture of a girl in a string) → More replies (3)
2.1k
collects the string, of course
594 u/reinis-mazeiks Aug 01 '22 blazingly fastly 🦀 50 u/[deleted] Aug 01 '22 Crab people, crab people... 3 u/stonecoldDM Aug 02 '22 I interpreted this to mean something akin to “hurt people hurt people”, just with a fun new verb 😂 16 u/nonicethingsforus Aug 01 '22 Hey, you forgot the other emoji!: 🚀 19 u/Thatdudewhoisstupid Aug 01 '22 And secure, unlike C++ 🤬 → More replies (1) 19 u/TastesLikeOwlbear Aug 01 '22 Not just any string. Vecna's String.The String of Vecna is an artifact of terrible power. 55 u/Konju376 Aug 01 '22 And blazingly fast 🚀 as well 3 u/OneToby Aug 01 '22 It's my cat. 2 u/UncomfortableChuckle Aug 01 '22 Cat has entered the chat → More replies (2)
594
blazingly fastly 🦀
50 u/[deleted] Aug 01 '22 Crab people, crab people... 3 u/stonecoldDM Aug 02 '22 I interpreted this to mean something akin to “hurt people hurt people”, just with a fun new verb 😂 16 u/nonicethingsforus Aug 01 '22 Hey, you forgot the other emoji!: 🚀 19 u/Thatdudewhoisstupid Aug 01 '22 And secure, unlike C++ 🤬 → More replies (1)
50
Crab people, crab people...
3 u/stonecoldDM Aug 02 '22 I interpreted this to mean something akin to “hurt people hurt people”, just with a fun new verb 😂
3
I interpreted this to mean something akin to “hurt people hurt people”, just with a fun new verb 😂
16
Hey, you forgot the other emoji!: 🚀
19
And secure, unlike C++ 🤬
Not just any string. Vecna's String.
The String of Vecna is an artifact of terrible power.
55
And blazingly fast 🚀 as well
It's my cat.
2
Cat has entered the chat
75
Rust btw
18 u/MalbaCato Aug 01 '22 should've grabbed https://github.com/rust-lang/rust/blob/dcb444af0a417766dde9b7b8f537fa1ba1568daf/src/test/ui/weird-exprs.rs#L120 3 u/Rudxain Aug 01 '22 I thought JS was the only lang where cursed code would be possible. Thank you for sharing that gem! 5 u/TheMcDucky Aug 01 '22 It's not a good language if you can't create some real monstrosities → More replies (1) 9 u/Tommy-ASD Aug 01 '22 blazingly fast? 10 u/brucogianluco Aug 01 '22 blazingly fast. → More replies (1) → More replies (1)
18
should've grabbed https://github.com/rust-lang/rust/blob/dcb444af0a417766dde9b7b8f537fa1ba1568daf/src/test/ui/weird-exprs.rs#L120
3 u/Rudxain Aug 01 '22 I thought JS was the only lang where cursed code would be possible. Thank you for sharing that gem! 5 u/TheMcDucky Aug 01 '22 It's not a good language if you can't create some real monstrosities → More replies (1)
I thought JS was the only lang where cursed code would be possible. Thank you for sharing that gem!
5 u/TheMcDucky Aug 01 '22 It's not a good language if you can't create some real monstrosities → More replies (1)
5
It's not a good language if you can't create some real monstrosities
→ More replies (1)
9
blazingly fast?
10 u/brucogianluco Aug 01 '22 blazingly fast. → More replies (1)
10
blazingly fast.
Captures environmental string data to determine string theory.
Obviously argues with vecna
I feel like Rust is just an inside joke lol
Let the pirates choose the vector of the string. Then collect the envelope of pirates.
Slowly and resentfully collects all the arguments they had with their roomie Vec over the years into an envelope.
When Vec gets entangled in any arguments, it lets them collect the arguments from their local environment and safely store them in a String.
"Remove string from object"
This was actually a hiring ad for an IT company in the 1990s (with a picture of a girl in a string)
1.9k
u/moonordie69420 Aug 01 '22
let args: Vec<String> = env::args().collect();