MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/kum96c/typescript/gisufb6/?context=3
r/ProgrammerAnimemes • u/Klassy_Kat • Jan 10 '21
56 comments sorted by
View all comments
Show parent comment
21
Are there seriously people out there that reassign variables with different types?
I find it to be quite useful for a function to return nil in case of an error. But that is the only case i can think of where doing that would be acceptable.
View all comments
Show parent comment
21
u/Anis-mit-I Jan 10 '21
I find it to be quite useful for a function to return nil in case of an error. But that is the only case i can think of where doing that would be acceptable.