4 ms·
In most modern languages with static types, types are reified - i.e. actual values have some runtime type associated with them, and it's impossible (or, at leas
by int_19h 8y ago
In most modern languages with static types, types are reified - i.e. actual values have some runtime type associated with them, and it's impossible (or, at least, exceedingly difficult) to create a value that has the wrong representation for its type.
In practice, with parsing, this usually means that runtime type metadata is used. Effectively, types become your schema, and you can validate against them as needed.