Generics on user types (roadmap #15)

type Tree[a] =
  | Leaf
  | Node(Tree[a], a, Tree[a])

fn parse_int(s: Str) -> Result[Int, Str]:
  var n = 0
  for c in chars(s):
    n = n * 10 + digit(c)?      # an Err returns from parse_int right here
  Ok(n)

What exists

None of these needed annotations.

Bugs and improvements found along the way

Evidence

Honest notes