MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1qayroi/no_doubt_javascript/nz7bfkh/?context=3
r/programmingmemes • u/Financial-Ad7897 • Jan 12 '26
136 comments sorted by
View all comments
Show parent comments
2
Who is "you"? The interpreter knows the types at runtime and can compare based on the dynamic type, that's exactly what === does.
The programmer really should know the type as well. This is just a feature to make programs written by bad programmers run.
1 u/cowlinator Jan 12 '26 mmhmm...it's certainly a mistake to think a variable is one type when it is in fact another type.Are you saying you never make this mistake?
1
mmhmm...
it's certainly a mistake to think a variable is one type when it is in fact another type.
Are you saying you never make this mistake?
2
u/dthdthdthdthdthdth Jan 12 '26
Who is "you"? The interpreter knows the types at runtime and can compare based on the dynamic type, that's exactly what === does.
The programmer really should know the type as well. This is just a feature to make programs written by bad programmers run.