Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Stand corrected with the example. I forgot about the lua auto type conversion - but that, on its own does not make weak typing - Python, C and Java do that between floats and ints, would you consider them weak typed?

I'm not familiar with a rigorous definition of weak typing - but my experience is that weak typing is usually reserved for languages like TCL, Snobol, and even Perl where there's no "type" of values to speak of - everything is equivalent and decoded according to context.



That's the problem with those terms, both 'weak' and 'strong' typing are purely subjective.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: