146
Strong typing
- A language is strongly typed, if:
– Every data element has a unique type, whose properties are known at compilation – Type conversions take place in a controlled manner, by interpreting value of one type as another
- Not by (mis)interpreting bits in memory!
- Type conversions are checked at
compilation
- Static typing
– Every variable has a definite type at compile time: Strong typing →! compile time typing
Other definitions for "strong typing":
- All type errors are
reported (compile- or runtime)
- Operations that are