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 ```

Macros

Stars

1

Unreleased Activity

Unknown

First Release

7

months ago

Last Release

7

months ago

Downloads

2.3k

last 90 days

Last Stable Version

0.2.0

Activity

last year

Pull Requests

Open 0
Merged 1

Issues

Open 0
Closed 0

Version 0.2.0

Published Apr 2025
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.

Related Packages

29 packages