AssignWhen (AssignWhen v0.1.0)
View SourceAllows one to replace code like this:
x = if condition(), do: whatever, else: x
with code like this:
x = whatever when condition()
Exports no functions, just a macro. The macro does no validation, but it does work on tuples and anything else that can be expressed as THING = THING