Difference between type equivalence and type compatibility
Answers
Answered by
0
Hello Buddy!!
Answer : Pascal is almost statically typed. ... Most languages say type A is compatible with (can be used in a context that expects) type B if it is equivalent or if it can be coerced to it. Two major approaches to equivalence: structural equivalence and name equivalence. Name equivalence is based on declarations.
#Mark My Answer as Brilliant...
Answer : Pascal is almost statically typed. ... Most languages say type A is compatible with (can be used in a context that expects) type B if it is equivalent or if it can be coerced to it. Two major approaches to equivalence: structural equivalence and name equivalence. Name equivalence is based on declarations.
#Mark My Answer as Brilliant...
Answered by
0
Following are the difference between type equivalence and type compatibility is given below .
Explanation:
- The type equivalence is making a more tight relation with the objects where as the type compatibility is not making the more tight relation with the objects.
- In the type equivalence objects and contexts can only be identical if they are of the same form where as type compatibility determines the what information is stored inside the object that are based on the level of compatibility.
Learn More :
- brainly.in/question/1872916
Similar questions