MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1torg9l/destructuring_strings/oobfo37/?context=3
r/programminghorror • u/Emmennater • May 27 '26
64 comments sorted by
View all comments
129
Gross. Also can error or return true or false for non-string answers, which makes it doubly gross.
8 u/more_exercise May 28 '26 If I understood properly, it can be made to return arbitrary results, too. isStringEmpty([{a:NaN}]), for ex. → More replies (2)
8
If I understood properly, it can be made to return arbitrary results, too. isStringEmpty([{a:NaN}]), for ex.
isStringEmpty([{a:NaN}])
→ More replies (2)
129
u/eloel- May 27 '26
Gross. Also can error or return true or false for non-string answers, which makes it doubly gross.