Scale By The Bay 2019: Bill Venners, In Types We Trust

preview_player
Показать описание
Scala ensures that types are used consistently with their declaration, but checks only the name and structure of the types. A type also implies a semantic contract, which is typically expressed in human-language documentation and checked by tests. Can we do better? In this talk I will propose that we formalize the specification of semantic contracts as statements of predicate logic. I will show how these statements of logic can be used in both property-based unit tests and proofs. I will show you new features of ScalaTest that support this approach.

Bill Venners
Artima, Inc.
President
Walnut Creek, CA
Bill Venners is president of Artima, Inc., publisher of Scala consulting, training, books, and developer tools. He is the lead developer and designer of ScalaTest, an open source testing tool for Scala and Java developers, and Scalactic, a library of utilities related to quality, and coauthor with Martin Odersky and Lex Spoon of the book, Programming in Scala.
Рекомендации по теме