assign_when
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 ```
MacrosPackage Resources
Stars
1
Unreleased Activity
Unknown
First Release
1
years agoLast Release
1
years agoDownloads
7.1k
last 90 daysLast Stable Version
0.2.0
Version 0.2.0
Elixir Version Requirement ~> 1.0
Documentation for 0.2.0
This package has no dependencies
No changelog for 0.2.0
Inspect source for 0.2.0
Community
Looks like this space is still empty… Want to be the first to contribute?
Share an article, talk, or podcast by adding resources to this package.