The Little Typer (Paperback)
暫譯: 小型類型器 (平裝本)

Daniel P. Friedman, David Thrane Christiansen

  • 出版商: MIT
  • 出版日期: 2018-09-18
  • 售價: $2,080
  • 貴賓價: 9.8$2,038
  • 語言: 英文
  • 頁數: 424
  • 裝訂: Paperback
  • ISBN: 0262536439
  • ISBN-13: 9780262536431
  • 相關分類: 程式語言
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

An introduction to dependent types, demonstrating the most beautiful aspects, one step at a time.

A program's type describes its behavior. Dependent types are a first-class part of a language, and are much more powerful than other kinds of types; using just one language for types and programs allows program descriptions to be as powerful as the programs they describe. The Little Typer explains dependent types, beginning with a very small language that looks very much like Scheme and extending it to cover both programming with dependent types and using dependent types for mathematical reasoning. Readers should be familiar with the basics of a Lisp-like programming language, as presented in the first four chapters of The Little Schemer.

The first five chapters of The Little Typer provide the needed tools to understand dependent types; the remaining chapters use these tools to build a bridge between mathematics and programming. Readers will learn that tools they know from programming―pairs, lists, functions, and recursion―can also capture patterns of reasoning. The Little Typer does not attempt to teach either practical programming skills or a fully rigorous approach to types. Instead, it demonstrates the most beautiful aspects as simply as possible, one step at a time.

商品描述(中文翻譯)

依賴類型的介紹,逐步展示其最美麗的特性。

程式的類型描述了其行為。依賴類型是語言中的一等公民,並且比其他類型更為強大;使用同一種語言來描述類型和程式,使得程式的描述能夠與其所描述的程式一樣強大。《The Little Typer》解釋了依賴類型,從一個非常小的語言開始,這個語言看起來非常像 Scheme,並擴展到涵蓋使用依賴類型進行程式設計以及使用依賴類型進行數學推理。讀者應該熟悉類似 Lisp 的程式語言的基本知識,這在《The Little Schemer》的前四章中有介紹。

《The Little Typer》的前五章提供了理解依賴類型所需的工具;其餘章節則利用這些工具在數學和程式設計之間架起橋樑。讀者將學到他們在程式設計中所熟悉的工具——對、列表、函數和遞迴——也能捕捉推理的模式。《The Little Typer》並不試圖教授實用的程式設計技能或完全嚴謹的類型方法。相反,它以最簡單的方式逐步展示最美麗的特性。