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

Penelope Phippen

September 12, 2014
Tweet

More Decks by Penelope Phippen

Other Decks in Technology

Transcript

  1. +

  2. /

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

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

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

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