Open mpope9 opened 4 years ago
I like types :D Makes understanding what is going on in structs way easier.
defmodule Examples do defstruct first: nil, last: nil @type t(first, last) :: %Examples{first: first, last: last} @type t :: %Examples{first: integer, last: integer} end
As an example. Makes thing easier if you choose to run https://github.com/jeremyjh/dialyxir
I like types :D Makes understanding what is going on in structs way easier.
As an example. Makes thing easier if you choose to run https://github.com/jeremyjh/dialyxir