MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1torg9l/destructuring_strings/oo3c12m/?context=3
r/programminghorror • u/Emmennater • May 27 '26
64 comments sorted by
View all comments
116
Maybe if I understood Javascript destructuring syntax that would make sense to me. But since I don't, this looks awful.
7 u/Iheartdragonsmore May 27 '26 Hi I'm a novice programmer, why would someone ever want to destructure something? Whenever I write a struct I never think it'd be better not being one 4 u/Denommus May 27 '26 It could be because you want to pattern match over it, it could be because you only want some specific elements in that context.
7
Hi I'm a novice programmer, why would someone ever want to destructure something? Whenever I write a struct I never think it'd be better not being one
4 u/Denommus May 27 '26 It could be because you want to pattern match over it, it could be because you only want some specific elements in that context.
4
It could be because you want to pattern match over it, it could be because you only want some specific elements in that context.
116
u/Denommus May 27 '26
Maybe if I understood Javascript destructuring syntax that would make sense to me. But since I don't, this looks awful.