Ruby metaprogramming for beginners → Elixir-like specs

Erlang and hence Elixir are dynamically typed languages. They both have extended abilities to type check in compile time using typespecs. Here are an introduction and more detailed documentation.Basically one might declare the specification of the function and if the actual function declaration violates this contract, the static code analysis tool called dialyzer will report an issue.


Ruby metaprogramming for beginners → Elixir-like specs #ruby #rubydeveloper #rubyonrails #elixir-like https://rubyonrails.ba/single/ruby-metaprogramming-for-beginners-elixir-like-specs

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles