Awesome
rebind
rebind parse transform for erlang
Usage
-module(test).
-compile({parse_transform, rebind}).
-export([sum/0]).
sum() ->
State = 1,
rebind(State) = State + 1,
rebind(State) = State + 1,
rebind(State) = State + 1,
rebind(State) = State + 1,
State.