Top "Strong-typing" questions

A typing system that enforces restrictions on which operations or methods may be called on an object based on type.

Display an image contained in a byte[] with ASP.Net MVC3

I've a view with a strong type. This strong type has a field consisting of a byte[], this array contains …

c# asp.net-mvc asp.net-mvc-3 razor strong-typing
Why can't I inherit from int in C++?

I'd love to be able to do this: class myInt : public int { }; Why can't I? Why would I want to? …

c++ inheritance integer language-design strong-typing
using a interface to type a anonymous object in typescript

I have a Interface IBase and a variable that contains a few other objects (in the sample i just added …

typescript strong-typing
Is C++ considered weakly typed? Why?

I've always considered C++ to be one of the most strongly typed languages out there. So I was quite shocked …

c++ strong-typing reinterpret-cast weak-typing
template argument deduction with strongly-typed enumerations

If I have a normal (weak) enumeration, I can use its enumerated values as non-type template parameters, like so: enum { …

c++ templates c++17 strong-typing template-argument-deduction
Difference between Strong vs Static Typing AND Weak vs Dynamic Typing

From what I understand, dynamic typing is the same as weak typing and strong typing is the same as static …

dynamic static strong-typing weak-typing
Is Python a weakly typed language as variables can switch types?

The way I understand it, the following is allowed in PHP because it's a weakly-typed language. $var = 'Hello'; $var = 5; I …

python strong-typing weak-typing
Enforce strong type checking in C (type strictness for typedefs)

Is there a way to enforce explicit cast for typedefs of the same type? I've to deal with utf8 and …

c typedef strong-typing typechecking
How do I initialize a vector with an array of values?

How do I initialize a vector with an array of values? I tried this and it complies fine, but does …

flash arrays actionscript-3 vector strong-typing
Shopping cart session state done right in ASP.NET MVC

I'm implementing a simple session cart for unauthenticated users in ASP.NET MVC and I want to do it right. …

c# asp.net-mvc session shopping-cart strong-typing