Record Detail Back
97 Things Every Programmer Should Know - Extended
We can view the concept of type in many ways.Perhapstheeasiestisthattypeprovidesaguarantee of operations on data, so that the expression 42 + "life" is meaningless. Be warned, though, that the safety net is not always 100% secure. From a compiler’s perspective, a type also supplies important optimization clues, so that data can be best aligned in memory to reduce waste, and improve efficiency of machine instructions. Types offer more than just safety nets and optimization clues. A type is also an abstraction. When you think about the concept of type in terms of abstraction,then think about the operations that are “allowable” for an object, which then constitute its abstract data type. Think about these two types:
Shirish Padalkar - Personal Name
NONE
Information Technology
English
2014
1-17
LOADING LIST...
LOADING LIST...