liveBook · Manning

Primitive type

Also called primitive data type, simple type

A primitive type is a predefined basic data type representing a simple value rather than a composite structure of multiple values or fields.

How 7 Manning books explain it

Learn Rust in a Month of Lunches

A primitive type is a built-in Rust type representing a basic value such as a number or Boolean.

How it is used
Introduces Rust’s simplest value types as a starting point for learning the language.
How deep it goes
Explains integer signs, bit sizes and binary representation, then illustrates character conversions and string byte lengths.
Examples
Uses integer ranges, character literals, a compiler error and comparisons of string bytes and character counts.
What you can do after
Evaluate/understand integer type choices and recognize why character conversions or string byte counts need care.

Read how Learn Rust in a Month of Lunches explains primitive type →

Kotlin in Action, 2E

A Java primitive type is one of Java's built-in value types, such as int or boolean, that is represented directly rather than as an object reference.

How it is used
Explains Kotlin’s basic value types and their Java interoperability, including boxing, nullability, collections, and arrays.
How deep it goes
Traces Kotlin types from source syntax through JVM primitive or wrapper representations, but defers broader array details.
Examples
Uses Int, Boolean, nullable Person ages, range clamping, boxed lists, and unboxed IntArray construction.
What you can do after
Evaluate Kotlin declarations and choose between collections, boxed generic values, and specialized primitive arrays.

Read how Kotlin in Action, 2E explains primitive type →

Get Programming: Learn to code with Python

How it is used
Defines basic value types as building blocks for other object types.
How deep it goes
Defines object types and names five Python primitives, then explains integer values and arithmetic.
Examples
Uses integer values, arithmetic assignments, and the comparison between 1 and 1.0.
What you can do after
Understand how basic Python values are grouped into types and how integers support arithmetic.

Read how Get Programming: Learn to code with Python explains primitive type →

Julia as a Second Language

A primitive type is a type represented directly by a language implementation rather than as a collection of user-defined fields.

How it is used
Distinguishes single-value types from field-based types before constructing larger application-specific data structures.
How deep it goes
Defines primitive types, names their common examples, checks them with isprimitivetype, and stops short of implementation-level representation details.
Examples
Uses integers, characters, floating-point numbers, strings, and an isprimitivetype REPL check as concrete examples.
What you can do after
Evaluate whether a Julia type is primitive and distinguish its single value from a composite type's fields.

Read how Julia as a Second Language explains primitive type →

The Quick Python Book, Fourth Edition

How it is used
Distinguishes scalar built-in values from more complex structures in a survey of Python’s data types.
How deep it goes
Defines the scalar-versus-structure distinction and lists types, while deferring detailed treatment to later chapters.
Examples
Names numbers and Booleans as scalars and lists, dictionaries, and files as more complex structures.
What you can do after
Understand how Python’s scalar built-in types differ from its more complex built-in structures.

Read how The Quick Python Book, Fourth Edition explains primitive type →

Code Like a Pro in Rust

A primitive type is a built-in Rust type representing a basic kind of value rather than a composition of other types.

How it is used
Uses primitives as Rust’s basic data representations and as building blocks for structs, enums, aliases, and external-library integration.
How deep it goes
Explains primitive categories, integer widths, literal notation, platform sizes, and arithmetic behavior, without exhaustive language-reference coverage.
Examples
Demonstrates typed integer literals, numeric bases, byte literals, memory sizes, division-by-zero panics, checked division, and wrapping arithmetic.
What you can do after
Apply it via Rust’s type annotations and arithmetic methods to select representations and make overflow behavior explicit.

Read how Code Like a Pro in Rust explains primitive type →

High Performance Unity Game Development

A fundamental built-in data type representing basic values directly supported by a programming language.

How it is used
Guides data-type choices for array storage and performance-oriented memory layout.
How deep it goes
Compares integer, byte, and short trade-offs and gives a struct-selection rule, while urging target-device testing.
Examples
Contrasts integers with byte or short for whole-number storage and describes small, co-used primitive fields in structs.
What you can do after
Evaluate whole-number storage choices against storage size and target-device performance.

Read how High Performance Unity Game Development explains primitive type →

Also covered in

What to know first

Related concepts

Questions about primitive type

What is primitive type?

A primitive type is a predefined basic data type representing a simple value rather than a composite structure of multiple values or fields.

Which Manning books explain primitive type?

Learn Rust in a Month of Lunches, Kotlin in Action, 2E, Get Programming: Learn to code with Python, Julia as a Second Language, The Quick Python Book, Fourth Edition, Code Like a Pro in Rust and High Performance Unity Game Development.

What should I know before learning primitive type?

Manning books that teach primitive type usually introduce string, array, floating-point arithmetic and loop first.

What is the difference between primitive type and null?

A primitive type is a predefined basic data type representing a simple value rather than a composite structure of multiple values or fields. Null is a special value that represents the absence of an object or valid reference.

What kinds of primitive type are there?

Kinds of primitive type include boolean, number type, string and missing value.

What is primitive type a kind of?

Primitive type is a kind of concrete type. A concrete type is a fully specified, directly implementable or instantiable type with a particular representation and behavior.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.