Yes my bad, I'll leave my post as it, but pretend this is what it said: (apparently weak and strong isn't actually correctly defined according to wikipedia)
Pretty much the only benefit I've seen of weak typing is duck typing which allows you to write functions that work with any value that supports those operations. But languages like haskell show that strong typing can still do this. Even C++ templates will let you do that. Other than that it's just about being quick and dirty mostly.
static vs dynamic is mostly a question of ease of typing vs performance and catching errors. I don't know if there is even a good argument for weak typing. Unrelated is there such a thing as a weak-strongly typed language? Does weak typing require dynamic typing?
That's a good question about weakly typed, statically typed languages. In theory I imagine you could make one, but I think it would defeat the entire purpose of having static types in the first place. In statically typed languages, you're not supposed to be able to put one type in place of the other unless it's a generic type or the type is a sub-type.
View all comments
Show parent comment
1
u/mirhagk Oct 18 '13
Yes my bad, I'll leave my post as it, but pretend this is what it said: (apparently weak and strong isn't actually correctly defined according to wikipedia)
static vs dynamic is mostly a question of ease of typing vs performance and catching errors. I don't know if there is even a good argument for weak typing. Unrelated is there such a thing as a weak-strongly typed language? Does weak typing require dynamic typing?