Upgrade to Pro — share decks privately, control downloads, hide ads and more …

My Problem, My Solution

My Problem, My Solution

A talk about typing I gave at Frozen Rails 2014

Avatar for Penelope Phippen

Penelope Phippen

September 12, 2014

More Decks by Penelope Phippen

Other Decks in Technology

Transcript

  1. ✕

  2. +

  3. /

  4. —

  5. The class holds the shared behavior for its instances (in

    the form of objects in a program list)
  6. To eval a program list, control is passed to the

    first object and the remainder is treated as its message.
  7. class Just def initialize(value) @value = value end def map(&blk)

    def value_or(x) Just.new(blk.call(@value)) @value end end end