Macros
Metaprogramming utilities and macro libraries for code generation. Packages among the 3,000 most downloaded in the past 90 days.
-
-
-
-
exconstructor 1.2.13
ExConstructor generates constructor functions for your structs, handling map-vs-keyword-list, string-vs-atom-keys, and camelCase-vs-under_score issues automatically.
-
typedstruct 0.5.3
A library for defining structs with a type without writing boilerplate code.
-
-
pipe 0.0.2
An Elixir extension that extends the pipe (|>) operator through macros.
-
-
-
-
-
-
-
-
assign_when 0.2.0
Allows the use of `when` clauses on assignment statements as an alternative to using `if`, avoiding the need for boilerplate `else` clauses which return the original variables when the condition is `false`. For instance: ```elixir x = 1 when x == nil ```
-
-
-
-
-
-
-
-
-
defconst 0.2.5
This library implements macros to define contants and enums that can be used in guards
-
-
-
-
shorthand 1.2.0
Convenience macros to eliminate laborious typing. Provides macros for short map, string keyed map, keyword lists, and structs (ES6 like style)
-
pipe_to 0.2.1
PipeTo operator `~>` is the enhanced pipe operator which can specify the target position.
-
es6_maps 1.0.1
Shorthand syntax for Elixir maps: `%{foo, bar} = map; IO.puts(foo)`