Media Summary: The abstraction function is the key piece of documentation an implementer needs to write; it relates the implementer's view of the ... The other key piece of documentation an implementer needs to provide is the representation invariant, which clarifies which ... What information should documentation provide vs reveal? Good specifications

Abstract Types Ocaml Programming Chapter - Detailed Analysis & Overview

The abstraction function is the key piece of documentation an implementer needs to write; it relates the implementer's view of the ... The other key piece of documentation an implementer needs to provide is the representation invariant, which clarifies which ... What information should documentation provide vs reveal? Good specifications Specifying a data abstraction's interface — the client's perspective Textbook: Representation invariants can be implemented and used to The correctness of a data-abstraction operation can be understood using abstraction

More about records vs. variants, and how variants can combine "one of" vs "each of" data. Textbook: ... Defining a persistent stack data structure as an How to implement a function that counts up with every invocation, using references Textbook: Achieving polymorphism for `let` expressions in HM Using pattern matching to access the pieces of a variant. Textbook:

Photo Gallery

Abstract Types | OCaml Programming | Chapter 5 Video 12
Abstraction Functions | OCaml Programming | Chapter 6 Video 7
Unboxed Types for OCaml
Implementing Abstraction Functions | OCaml Programming | Chapter 6 Video 8
Representation Invariants | OCaml Programming | Chapter 6 Video 9
Abstraction and Specification | OCaml Programming | Chapter 6 Video 1
Data Abstractions | OCaml Programming | Chapter 6 Video 4
Implementing Representation Invariants | OCaml Programming | Chapter 6 Video 10
Abstraction Functions and Commutative Diagrams | OCaml Programming | Chapter 6 Video 11
Induction on an ADT for Natural Numbers | OCaml Programming | Chapter 6 Video 27
Algebraic Data Types | OCaml Programming | Chapter 3 Video 17
Functional Stacks | OCaml Programming | Chapter 5 Video 3
Sponsored
Sponsored
View Detailed Profile
Sponsored
Sponsored