weak-typing

Can someone tell me what Strong typing and weak typing means and which one is better?

Can someone tell me what Strong typing and weak typing means and which one is better? ...

When should weak types be discouraged?

When should weak types be discouraged? Are weak types discouraged in big projects? If the left side is strongly typed like the following would that be an exception to the rule? int i = 5 string sz = i sz = sz + "1" i = sz Does any languages support similar syntax to the above? Tell me more about pros and cons to weak typ...

Static/strong typing and refactoring

It seems to me that the most invaluable thing about a static/strongly-typed programming language is that it helps refactoring: if/when you change any API, then the compiler will tell you what that change has broken. I can imagine writing code in a runtime/weakly-typed language ... but I can't imagine refactoring without the compiler's h...

Strong vs weak typing

The way I understand it, the following is allowed in PHP because it's a weakly-typed language. $var = 'Hello'; $var = 5; I just installed a Windows version of Python 2.6 and I was expecting it NOT to let me change type just like that, but the Python equivalent of the above code works just like in PHP yikes! >>> var = "Hello" >>> type...

When would JavaScript == make more sense than ===?

As 359494 indicates they are basically identical except '===' also ensures type equality and hence '==' might perform type conversion. In Douglas Crockford's JavaScript: The Good Parts, it is advised to always avoid '=='. However, I'm wondering what the original thought of designing two set of equality operators was. Have you seen any s...

Static/Dynamic vs Strong/Weak

I see these terms banded around all over the place in programming and I have a vague notion of what they mean. A search shows me that such things have been asked all over stack overflow in fact. As far as I'm aware Static/Dynamic typing in languages is subtly different to Strong/Weak typing but what that difference is eludes me. Differen...

Is there any real possibility/example of useful `weak' typing policy implementation?

Are the implicit type coercions the absoulte evil? Or the history does know a decent implementation of what I've never heard.. Is `weak' typing doomed to be implemented in a way it is done in PHP, Javascript etc.? ...

PHP: Code checker since PHP is a loose type / dynamic language?

I have a small PHP web-based application that is beginning to grow moderately in size. I'm starting to become concerned with managing my PHP code base, given PHP is a loosely/weak typed, dynamic language. How do others manage their code based for loosely/weak typed, dynamic languages? Do pre-parsers exist for PHP that allow me to runs...

What's the difference between Object, *, and no type at all?

Is there any difference between those three declarations? var x; var y:Object; var z:*; Is there anything in AS that's not an Object? ...