CPSC 201: Introduction to Computer Science

 

Instructor: Carsten Schürmann
Department of Computer Science
Yale University
Time: MWF 11:30-12:20
Room: AKW200

  Home
  Schedule
  Handouts
  Assignments
  Projects
  Links
 
 

Lecture 4

When it comes to programming problems in the real world, we must put a lot emphasis on the question how problems are represented, and not if they can. Good representation often lead to good, short, understandable, maintainable, and even verifiable code.

Therefore it is often necessary to define one owns datatypes. Its values, and the operation defined on them, which will be the topic of this lecture.

Code: poker.sml.

Reading: Programming Standard ML. Chapter 6: Case Analysis.