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

4

months ago

Last Release

4

months ago

Downloads

8.6k

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

Related Packages

30 packages