Just typescript things: me: hey tuples drink this poison (appending extra values apart from the types we have already defined). tuples: no I will die (starts throwing errors).
me: ok. *mixes poison in tuples food* (appending extra values to tuples using array.push method). tuples: drinks the poison (does not throws any error).
This is a strange typescript behavior that Microsoft says they won't change because it would break the already existing real-world code.
However, this can be fixed by teaching tuples to reject food with poison mixed in it (by using "readonly" keyword while defining the types of values it can hold.)
P.S. couldn't think of any other relatable scenario so replace poison with something better that comes to your mind | Still learning | Correct me if I am wrong. #clevercoderjoy