Macros
Metaprogramming utilities and macro libraries for code generation. Packages among the 3,000 most downloaded in the past 90 days.
-
2353.4m
-
406868.5k
-
30387.0k
-
49266.9k
-
exconstructor 1.3.1
ExConstructor generates constructor functions for your structs, handling map-vs-keyword-list, string-vs-atom-keys, and camelCase-vs-under_score issues automatically.
294157.1k last 90 days294157.1k -
typedstruct 0.5.4
A library for defining structs with a type without writing boilerplate code.
4841.1k last 90 days4841.1k -
1917.4k
-
1611.3k
-
19.1k
-
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 ```
17.3k last 90 days17.3k -
27.1k
-
136.6k
-
-5.2k
-
185.2k
-
anka 0.1.2
Anka and its binding projects provide base model structure and macros to increase modularity of Elixir projects with DRY principle.
5.2k last 90 days-5.2k -
defconst 0.4.0
This library implements macros to define contants and enums that can be used in guards
44.8k last 90 days44.8k -
434.7k
-
-4.3k
-
924.3k
-
-4.0k
-
24.0k
-
amlapio 0.2.0
Amlapio: Adding a Map API to a GenServer or Module with Agent-held State A use macro to add a Map API (e.g. get, put, pop, etc) to a GenServer's state or a module's state held in an Agent.
03.8k last 90 days03.8k