Type Systems and Data Types in Programming Languages

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

Scheme

Languages that have no explicit types or translation-time typing.

2
New cards

Data type

A set of values.

3
New cards

Type checking

The process a translator goes through to determine whether the type information in a program is consistent.

4
New cards

Type constructors

Used to construct complex types from basic types.

5
New cards

Enumerated types

Sets whose elements are named and listed explicitly.

6
New cards

Subtype mechanism

Used to create a new data type that contains a subset of a known data type.

7
New cards

Recursive type

A type that uses itself in its declaration.

8
New cards

Reference types

Types constructed using type constructors in Java.

9
New cards

Structural equivalence

When two objects are built in the same way using the same type constructors from the same simple types.

10
New cards

Dynamic checking

If information is maintained and checked at runtime.

11
New cards

Assignment compatibility

A term used for the type correctness of assignments.

12
New cards

Implicit conversions

Often referred to as coercions.

13
New cards

Type descriptor

The primary data structure used to represent type attributes.

14
New cards

Short-circuit evaluation

Evaluation that stops once the truth value of a Boolean expression is known.

15
New cards

Guards

the Boolean expressions in the guarded if statement

16
New cards

Dangling-else problem

An ambiguity in which it cannot be determined which if statement should be associated with a single else statement.

17
New cards

Union

Like a structure, except all members occupy the same memory area.

18
New cards

Pointer to a structure

Can be used as a function parameter, structure member, or function return type.

19
New cards

Structure pointer

Contains the address of a structure variable.

20
New cards

Dereference a structure pointer

The appropriate operator is the structure pointer operator, ->.