Overview

The Hamler Data Types are mapping to Erlang Data types at compile-time. The following table shows the overview of the mappings:

Hamler Data Type Erlang Data Type Mapping Description
Atom(Symbol in Ruby) atom()
Bool boolean() true -> true
false -> false
Char char()
Integer(Int) integer() Integer type
Float(Double) float() Float type
String string()
Tuple tuple()
List list()
Map map()
Record map()
Binary binary() \ bitstring()
Port port() Erlang Port
Pid pid() Erlang Pid
Reference(Ref) reference() Erlang Reference