Closed sascha-wolf closed 7 years ago
Instead of passing the keyword list directly to before, we now generate a list of calls to the generated functions.
Using let! a: 1, b: 2 results in:
let! a: 1, b: 2
let a: 1, b: 2 before a: 1, b: 2
let a: 1, b: 2 before do [a(), b()] end
This ensures that the values of the keyword list really only get evaluated once, which is important when these values affect the global state.
Hi, @Zeeker ! Thanks for collaboration!
Instead of passing the keyword list directly to before, we now generate a list of calls to the generated functions.
Example
Before
Using
let! a: 1, b: 2
results in:Now
Using
let! a: 1, b: 2
results in:This ensures that the values of the keyword list really only get evaluated once, which is important when these values affect the global state.