Macros
Metaprogramming utilities and macro libraries for code generation. Packages among the 3,000 most downloaded in the past 90 days.
-
2342.6m
-
401735.0k
-
29386.2k
-
exconstructor 1.3.0
ExConstructor generates constructor functions for your structs, handling map-vs-keyword-list, string-vs-atom-keys, and camelCase-vs-under_score issues automatically.
291144.2k last 90 days291144.2k -
typedstruct 0.5.4
A library for defining structs with a type without writing boilerplate code.
4534.9k last 90 days4534.9k -
4310.1k
-
199.8k
-
19.6k
-
pipe 0.0.2
An Elixir extension that extends the pipe (|>) operator through macros.
3249.1k last 90 days3249.1k -
917.1k
-
77.0k
-
26.0k
-
235.9k
-
165.8k
-
25.1k
-
1755.0k
-
1224.8k
-
-4.1k
-
03.5k
-
193.4k
-
133.1k
-
122.8k
-
82.7k
-
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 ```
12.3k last 90 days12.3k -
while 0.2.4
Provides a general functional `reduce_while(acc, fun)` for use without an Enum. Additionally provides syntax sugar to simulate a non-functional `while` as proof of concept on what can be done with macros.
11.8k last 90 days11.8k -
pipe_to 0.2.1
PipeTo operator `~>` is the enhanced pipe operator which can specify the target position.
851.8k last 90 days851.8k -
1101.7k
-
231.6k
-
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)
221.6k last 90 days221.6k -
defconst 0.2.5
This library implements macros to define contants and enums that can be used in guards
41.4k last 90 days41.4k