Records Mapping

Records in Hamler are mapping to Erlang Maps at compile-time.

Records in Hamler:

  1. type Person = {name :: String, age :: Integer}
  2. john = {name = "John", age = 12}

Compiled to Erlang’s Maps:

  1. %% john
  2. #{age => 12,name => "John"}