liveBook · Manning

Type system

A type system is a set of rules that classifies program values and expressions and constrains their valid uses and operations.

How 8 Manning books explain it

Kotlin in Action, 2E

A type system is the set of rules a programming language uses to classify values and expressions and check their compatibility.

How it is used
Prevents unsafe null operations during Kotlin JVM development by making nullability part of declared types.
How deep it goes
Explains static typing, inference, nullable and non-null types, assignment restrictions, and if-check narrowing; defers function-type detail.
Examples
Uses inferred Int values and String/String? length functions, including an if check that returns 0 for null.
What you can do after
Evaluate/understand whether Kotlin calls, assignments, and member access are allowed before running code.

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

Functional Programming in Scala, Second Edition

A type system is the set of language rules and mechanisms that classify program expressions and constrain their valid composition.

How it is used
Guides functional implementations and enforces invariants that preserve referential transparency around local mutable state.
How deep it goes
Works through function signatures and compiler constraints, then applies polymorphic types to prevent STRef escape.
Examples
Uses partial1, curry, uncurry, compose, STRef actions, safe ST.run calls, and rejected escaping-reference programs.
What you can do after
Build implementations from signatures and diagnose unsafe state programs through type mismatches.

Read how Functional Programming in Scala, Second Edition explains type system →

Go in Action, Second Edition

A type system is the set of rules governing the classification of values and the validity of operations on them.

How it is used
Models Go application domains while using compile-time checking to catch type errors early.
How deep it goes
Develops a recipe model through named types, structs, collections, interfaces, and methods, without detailing compiler internals.
Examples
Uses a recipe application with measured ingredients, steps, scaling, unit conversion, and a grocery list.
What you can do after
Builds from scratch a Go domain model using named types, structs, collections, methods, and interfaces.

Read how Go in Action, Second Edition explains type system →

F# in Action: A Revised Edition of Get Programming with F#

A type system is a set of rules that assigns types to program expressions and constrains how values and operations may be combined.

How it is used
Supports concise domain modeling and guides development through compiler feedback.
How deep it goes
Introduces static typing and inference, then distinguishes collections from explicit record fields without detailing inference internals.
Examples
Contrasts a customer’s address list with separate billing and postal address fields.
What you can do after
Build it from scratch: model domain data with composed types and refine it using compiler feedback.

Read how F# in Action: A Revised Edition of Get Programming with F# explains type system →

Essential TypeScript 5, Third Edition

The JavaScript type system is the set of rules governing the types and type-related behavior of JavaScript values and expressions.

How it is used
Explains JavaScript value behavior and provides the foundation for using TypeScript's static type features.
How deep it goes
Defines built-in types, coercion, typeof, and dynamic reassignment, then introduces TypeScript checking without covering deeper advanced features.
Examples
Uses mixed price values, typeof reassignment, and a built-in-types table to demonstrate runtime behavior.
What you can do after
Diagnose/debug with it by recognizing coercion, inspecting values with typeof, and choosing TypeScript checks for safer assignments.

Read how Essential TypeScript 5, Third Edition explains type system →

Acing the Frontend Interview

A type system is the set of rules that classifies values and governs valid operations, assignments, and type relationships in a programming language.

How it is used
Frames TypeScript type systems as tools for safer, scalable application development and interview reasoning.
How deep it goes
Explains annotations, inference, safety, and any versus unknown with examples, while surveying advanced features rather than implementing them.
Examples
Uses any and unknown assignments and operations, plus a checklist covering annotations, inference, structural typing, and composite types.
What you can do after
Evaluate TypeScript type choices, explain type-safety trade-offs, and discuss API modeling in technical interviews.

Read how Acing the Frontend Interview explains type system →

Julia as a Second Language

A type system is the set of rules and mechanisms a programming language uses to classify values and constrain or determine valid operations.

How it is used
Uses Julia’s type system to model varied problems and catch bugs at run time.
How deep it goes
Introduces benefits and a connection to performance, without explaining type rules or demonstrating their use.

Read how Julia as a Second Language explains type system →

Functional Design and Architecture: Examples in Haskell

A type system assigns types to program constructs and checks that their combinations satisfy specified rules.

How it is used
Uses types to make purity and domain-valid operations enforceable by compilers.
How deep it goes
Shows effect types rejecting side effects in pure functions and summarizes type systems’ role in safe DSL design.
Examples
Contrasts Haskell, PureScript, and Scala function signatures, and relates typed DSLs to domain modeling.
What you can do after
Evaluate how effect types expose impure calls and how domain types can restrict invalid operations.

Read how Functional Design and Architecture: Examples in Haskell explains type system →

Also covered in

What to know first

Related concepts

Questions about type system

What is type system?

A type system is a set of rules that classifies program values and expressions and constrains their valid uses and operations.

Which Manning books explain type system?

Kotlin in Action, 2E, Functional Programming in Scala, Second Edition, Go in Action, Second Edition, F# in Action: A Revised Edition of Get Programming with F#, Essential TypeScript 5, Third Edition, Acing the Frontend Interview, Julia as a Second Language and Functional Design and Architecture: Examples in Haskell.

What should I know before learning type system?

Manning books that teach type system usually introduce attribute, JavaScript, Rust and Java first.

What kinds of type system are there?

Kinds of type system include non-single-rooted type system.

What is type system part of?

Type system is part of Rust. Rust is a statically typed systems programming language designed for performance, concurrency, and memory safety without requiring garbage collection.

What are the parts of type system?

Type system includes nullability.

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.